Help us shape the future of Go! Take the 2026 Go Developer Survey

secretsmanager

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client calls secretsmanager over its wire protocol.

func NewFromConfig

func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client

NewFromConfig returns a Client for cfg.

func (*Client) CreateSecret

func (c *Client) CreateSecret(ctx context.Context, in *CreateSecretInput) (*CreateSecretOutput, error)

CreateSecret calls the CreateSecret operation.

func (*Client) DeleteSecret

func (c *Client) DeleteSecret(ctx context.Context, in *DeleteSecretInput) (*DeleteSecretOutput, error)

DeleteSecret calls the DeleteSecret operation.

func (*Client) DescribeSecret

func (c *Client) DescribeSecret(ctx context.Context, in *DescribeSecretInput) (*DescribeSecretOutput, error)

DescribeSecret calls the DescribeSecret operation.

func (*Client) GetResourcePolicy

func (c *Client) GetResourcePolicy(ctx context.Context, in *GetResourcePolicyInput) (*GetResourcePolicyOutput, error)

GetResourcePolicy calls the GetResourcePolicy operation.

func (*Client) GetSecretValue

func (c *Client) GetSecretValue(ctx context.Context, in *GetSecretValueInput) (*GetSecretValueOutput, error)

GetSecretValue calls the GetSecretValue operation.

func (*Client) ListSecretVersionIds

func (c *Client) ListSecretVersionIds(ctx context.Context, in *ListSecretVersionIdsInput) (*ListSecretVersionIdsOutput, error)

ListSecretVersionIds calls the ListSecretVersionIds operation.

func (*Client) ListSecrets

func (c *Client) ListSecrets(ctx context.Context, in *ListSecretsInput) (*ListSecretsOutput, error)

ListSecrets calls the ListSecrets operation.

func (*Client) PutResourcePolicy

func (c *Client) PutResourcePolicy(ctx context.Context, in *PutResourcePolicyInput) (*PutResourcePolicyOutput, error)

PutResourcePolicy calls the PutResourcePolicy operation.

func (*Client) PutSecretValue

func (c *Client) PutSecretValue(ctx context.Context, in *PutSecretValueInput) (*PutSecretValueOutput, error)

PutSecretValue calls the PutSecretValue operation.

func (*Client) TagResource

func (c *Client) TagResource(ctx context.Context, in *TagResourceInput) (*TagResourceOutput, error)

TagResource calls the TagResource operation.

func (*Client) UntagResource

func (c *Client) UntagResource(ctx context.Context, in *UntagResourceInput) (*UntagResourceOutput, error)

UntagResource calls the UntagResource operation.

func (*Client) UpdateSecret

func (c *Client) UpdateSecret(ctx context.Context, in *UpdateSecretInput) (*UpdateSecretOutput, error)

UpdateSecret calls the UpdateSecret operation.

func (*Client) UpdateSecretVersionStage

func (c *Client) UpdateSecretVersionStage(ctx context.Context, in *UpdateSecretVersionStageInput) (*UpdateSecretVersionStageOutput, error)

UpdateSecretVersionStage calls the UpdateSecretVersionStage operation.

type CreateSecretInput

type CreateSecretInput struct {
	Name                        *string
	AddReplicaRegions           []types.ReplicaRegionType
	ClientRequestToken          *string
	Description                 *string
	ForceOverwriteReplicaSecret bool `json:",omitempty"`
	KmsKeyId                    *string
	SecretBinary                []byte
	SecretString                *string
	Tags                        []types.Tag
	Type                        *string
}

type CreateSecretOutput

type CreateSecretOutput struct {
	ARN               *string
	Name              *string
	ReplicationStatus []types.ReplicationStatusType
	VersionId         *string
}

type DeleteSecretInput

type DeleteSecretInput struct {
	SecretId                   *string
	ForceDeleteWithoutRecovery *bool
	RecoveryWindowInDays       *int64
}

type DeleteSecretOutput

type DeleteSecretOutput struct {
	ARN          *string
	DeletionDate *time.Time
	Name         *string
}

type DescribeSecretInput

type DescribeSecretInput struct {
	SecretId *string
}

type DescribeSecretOutput

type DescribeSecretOutput struct {
	ARN                            *string
	CreatedDate                    *time.Time
	DeletedDate                    *time.Time
	Description                    *string
	ExternalSecretRotationMetadata []types.ExternalSecretRotationMetadataItem
	ExternalSecretRotationRoleArn  *string
	KmsKeyId                       *string
	LastAccessedDate               *time.Time
	LastChangedDate                *time.Time
	LastRotatedDate                *time.Time
	Name                           *string
	NextRotationDate               *time.Time
	OwningService                  *string
	PrimaryRegion                  *string
	ReplicationStatus              []types.ReplicationStatusType
	RotationEnabled                *bool
	RotationLambdaARN              *string
	RotationRules                  *types.RotationRulesType
	Tags                           []types.Tag
	Type                           *string
	VersionIdsToStages             map[string][]string
}

type GetResourcePolicyInput

type GetResourcePolicyInput struct {
	SecretId *string
}

type GetResourcePolicyOutput

type GetResourcePolicyOutput struct {
	ARN            *string
	Name           *string
	ResourcePolicy *string
}

type GetSecretValueInput

type GetSecretValueInput struct {
	SecretId     *string
	VersionId    *string
	VersionStage *string
}

type GetSecretValueOutput

type GetSecretValueOutput struct {
	ARN           *string
	CreatedDate   *time.Time
	Name          *string
	SecretBinary  []byte
	SecretString  *string
	VersionId     *string
	VersionStages []string
}

type ListSecretVersionIdsInput

type ListSecretVersionIdsInput struct {
	SecretId          *string
	IncludeDeprecated *bool
	MaxResults        *int32
	NextToken         *string
}

type ListSecretVersionIdsOutput

type ListSecretVersionIdsOutput struct {
	ARN       *string
	Name      *string
	NextToken *string
	Versions  []types.SecretVersionsListEntry
}

type ListSecretVersionIdsPaginator

ListSecretVersionIdsPaginator pages through ListSecretVersionIds.

func NewListSecretVersionIdsPaginator

func NewListSecretVersionIdsPaginator(c *Client, in *ListSecretVersionIdsInput) *ListSecretVersionIdsPaginator

NewListSecretVersionIdsPaginator returns a paginator over ListSecretVersionIds.

type ListSecretsInput

type ListSecretsInput struct {
	Filters                []types.Filter
	IncludePlannedDeletion *bool
	MaxResults             *int32
	NextToken              *string
	SortBy                 types.SortByType    `json:",omitempty"`
	SortOrder              types.SortOrderType `json:",omitempty"`
}

type ListSecretsOutput

type ListSecretsOutput struct {
	NextToken  *string
	SecretList []types.SecretListEntry
}

type ListSecretsPaginator

type ListSecretsPaginator = awswire.Paginator[ListSecretsInput, ListSecretsOutput]

ListSecretsPaginator pages through ListSecrets.

func NewListSecretsPaginator

func NewListSecretsPaginator(c *Client, in *ListSecretsInput) *ListSecretsPaginator

NewListSecretsPaginator returns a paginator over ListSecrets.

type Options

type Options = awswire.Options

Options configures a Client.

type PutResourcePolicyInput

type PutResourcePolicyInput struct {
	ResourcePolicy    *string
	SecretId          *string
	BlockPublicPolicy *bool
}

type PutResourcePolicyOutput

type PutResourcePolicyOutput struct {
	ARN  *string
	Name *string
}

type PutSecretValueInput

type PutSecretValueInput struct {
	SecretId           *string
	ClientRequestToken *string
	RotationToken      *string
	SecretBinary       []byte
	SecretString       *string
	VersionStages      []string
}

type PutSecretValueOutput

type PutSecretValueOutput struct {
	ARN           *string
	Name          *string
	VersionId     *string
	VersionStages []string
}

type TagResourceInput

type TagResourceInput struct {
	SecretId *string
	Tags     []types.Tag
}

type TagResourceOutput

type TagResourceOutput struct {
}

type UntagResourceInput

type UntagResourceInput struct {
	SecretId *string
	TagKeys  []string
}

type UntagResourceOutput

type UntagResourceOutput struct {
}

type UpdateSecretInput

type UpdateSecretInput struct {
	SecretId           *string
	ClientRequestToken *string
	Description        *string
	KmsKeyId           *string
	SecretBinary       []byte
	SecretString       *string
	Type               *string
}

type UpdateSecretOutput

type UpdateSecretOutput struct {
	ARN       *string
	Name      *string
	VersionId *string
}

type UpdateSecretVersionStageInput

type UpdateSecretVersionStageInput struct {
	SecretId            *string
	VersionStage        *string
	MoveToVersionId     *string
	RemoveFromVersionId *string
}

type UpdateSecretVersionStageOutput

type UpdateSecretVersionStageOutput struct {
	ARN  *string
	Name *string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL