package secrettargetattachment
import "github.com/oslokommune/okctl/pkg/cfn/components/secrettargetattachment"
Package secrettargetattachment knows how to build a secret target attachment
Index ¶
- type SecretTargetAttachment
- func New(resourceName, targetType string, secret, target cfn.Referencer) *SecretTargetAttachment
- func NewRDSDBInstance(resourceName string, secret, target cfn.Referencer) *SecretTargetAttachment
- func (e *SecretTargetAttachment) Name() string
- func (e *SecretTargetAttachment) NamedOutputs() map[string]cloudformation.Output
- func (e *SecretTargetAttachment) Ref() string
- func (e *SecretTargetAttachment) Resource() cloudformation.Resource
Types ¶
type SecretTargetAttachment ¶
type SecretTargetAttachment struct { StoredName string TargetType string Secret cfn.Referencer Target cfn.Referencer }
SecretTargetAttachment contains the state required for building a secret target attachment resource
func New ¶
func New(resourceName, targetType string, secret, target cfn.Referencer) *SecretTargetAttachment
New returns an initialised secrets target attachment - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html
func NewRDSDBInstance ¶
func NewRDSDBInstance(resourceName string, secret, target cfn.Referencer) *SecretTargetAttachment
NewRDSDBInstance returns an initialised secrets target attachment compatible with RDS DBInstance
func (*SecretTargetAttachment) Name ¶
func (e *SecretTargetAttachment) Name() string
Name returns the name of the cloud formation resource
func (*SecretTargetAttachment) NamedOutputs ¶
func (e *SecretTargetAttachment) NamedOutputs() map[string]cloudformation.Output
NamedOutputs returns the resource outputs
func (*SecretTargetAttachment) Ref ¶
func (e *SecretTargetAttachment) Ref() string
Ref returns a cloud formation intrinsic ref to the resource
func (*SecretTargetAttachment) Resource ¶
func (e *SecretTargetAttachment) Resource() cloudformation.Resource
Resource returns the cloud formation resource for a secret target attachment
Source Files ¶
- Version
- v0.0.106 (latest)
- Published
- Oct 21, 2022
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 17 hours ago –
Tools for package owners.