func ConflictExceptionReason_Values() []string
ConflictExceptionReason_Values returns all elements of the ConflictExceptionReason enum
func LockState_Values() []string
LockState_Values returns all elements of the LockState enum
func ResourceNotFoundExceptionReason_Values() []string
ResourceNotFoundExceptionReason_Values returns all elements of the ResourceNotFoundExceptionReason enum
func ResourceType_Values() []string
ResourceType_Values returns all elements of the ResourceType enum
func RetentionPeriodUnit_Values() []string
RetentionPeriodUnit_Values returns all elements of the RetentionPeriodUnit enum
func RuleStatus_Values() []string
RuleStatus_Values returns all elements of the RuleStatus enum
func ServiceQuotaExceededExceptionReason_Values() []string
ServiceQuotaExceededExceptionReason_Values returns all elements of the ServiceQuotaExceededExceptionReason enum
func UnlockDelayUnit_Values() []string
UnlockDelayUnit_Values returns all elements of the UnlockDelayUnit enum
func ValidationExceptionReason_Values() []string
ValidationExceptionReason_Values returns all elements of the ValidationExceptionReason enum
type ConflictException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // The reason for the exception. Reason *string `type:"string" enum:"ConflictExceptionReason"` // contains filtered or unexported fields }
The specified retention rule lock request can't be completed.
func (s *ConflictException) Code() string
Code returns the exception type name.
func (s *ConflictException) Error() string
func (s ConflictException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ConflictException) Message() string
Message returns the exception's message.
func (s *ConflictException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ConflictException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ConflictException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s ConflictException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CreateRuleInput struct { // The retention rule description. Description *string `type:"string"` // Information about the retention rule lock configuration. LockConfiguration *LockConfiguration `type:"structure"` // Specifies the resource tags to use to identify resources that are to be retained // by a tag-level retention rule. For tag-level retention rules, only deleted // resources, of the specified resource type, that have one or more of the specified // tag key and value pairs are retained. If a resource is deleted, but it does // not have any of the specified tag key and value pairs, it is immediately // deleted without being retained by the retention rule. // // You can add the same tag key and value pair to a maximum or five retention // rules. // // To create a Region-level retention rule, omit this parameter. A Region-level // retention rule does not have any resource tags specified. It retains all // deleted resources of the specified resource type in the Region in which the // rule is created, even if the resources are not tagged. ResourceTags []*ResourceTag `type:"list"` // The resource type to be retained by the retention rule. Currently, only Amazon // EBS snapshots and EBS-backed AMIs are supported. To retain snapshots, specify // EBS_SNAPSHOT. To retain EBS-backed AMIs, specify EC2_IMAGE. // // ResourceType is a required field ResourceType *string `type:"string" required:"true" enum:"ResourceType"` // Information about the retention period for which the retention rule is to // retain resources. // // RetentionPeriod is a required field RetentionPeriod *RetentionPeriod `type:"structure" required:"true"` // Information about the tags to assign to the retention rule. Tags []*Tag `type:"list"` // contains filtered or unexported fields }
func (s CreateRuleInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateRuleInput) SetDescription(v string) *CreateRuleInput
SetDescription sets the Description field's value.
func (s *CreateRuleInput) SetLockConfiguration(v *LockConfiguration) *CreateRuleInput
SetLockConfiguration sets the LockConfiguration field's value.
func (s *CreateRuleInput) SetResourceTags(v []*ResourceTag) *CreateRuleInput
SetResourceTags sets the ResourceTags field's value.
func (s *CreateRuleInput) SetResourceType(v string) *CreateRuleInput
SetResourceType sets the ResourceType field's value.
func (s *CreateRuleInput) SetRetentionPeriod(v *RetentionPeriod) *CreateRuleInput
SetRetentionPeriod sets the RetentionPeriod field's value.
func (s *CreateRuleInput) SetTags(v []*Tag) *CreateRuleInput
SetTags sets the Tags field's value.
func (s CreateRuleInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateRuleInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateRuleOutput struct { // The retention rule description. Description *string `type:"string"` // The unique ID of the retention rule. Identifier *string `type:"string"` // Information about the retention rule lock configuration. LockConfiguration *LockConfiguration `type:"structure"` // The lock state for the retention rule. // // * locked - The retention rule is locked and can't be modified or deleted. // // * pending_unlock - The retention rule has been unlocked but it is still // within the unlock delay period. The retention rule can be modified or // deleted only after the unlock delay period has expired. // // * unlocked - The retention rule is unlocked and it can be modified or // deleted by any user with the required permissions. // // * null - The retention rule has never been locked. Once a retention rule // has been locked, it can transition between the locked and unlocked states // only; it can never transition back to null. LockState *string `type:"string" enum:"LockState"` // Information about the resource tags used to identify resources that are retained // by the retention rule. ResourceTags []*ResourceTag `type:"list"` // The resource type retained by the retention rule. ResourceType *string `type:"string" enum:"ResourceType"` // Information about the retention period for which the retention rule is to // retain resources. RetentionPeriod *RetentionPeriod `type:"structure"` // The Amazon Resource Name (ARN) of the retention rule. RuleArn *string `type:"string"` // The state of the retention rule. Only retention rules that are in the available // state retain resources. Status *string `type:"string" enum:"RuleStatus"` // Information about the tags assigned to the retention rule. Tags []*Tag `type:"list"` // contains filtered or unexported fields }
func (s CreateRuleOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateRuleOutput) SetDescription(v string) *CreateRuleOutput
SetDescription sets the Description field's value.
func (s *CreateRuleOutput) SetIdentifier(v string) *CreateRuleOutput
SetIdentifier sets the Identifier field's value.
func (s *CreateRuleOutput) SetLockConfiguration(v *LockConfiguration) *CreateRuleOutput
SetLockConfiguration sets the LockConfiguration field's value.
func (s *CreateRuleOutput) SetLockState(v string) *CreateRuleOutput
SetLockState sets the LockState field's value.
func (s *CreateRuleOutput) SetResourceTags(v []*ResourceTag) *CreateRuleOutput
SetResourceTags sets the ResourceTags field's value.
func (s *CreateRuleOutput) SetResourceType(v string) *CreateRuleOutput
SetResourceType sets the ResourceType field's value.
func (s *CreateRuleOutput) SetRetentionPeriod(v *RetentionPeriod) *CreateRuleOutput
SetRetentionPeriod sets the RetentionPeriod field's value.
func (s *CreateRuleOutput) SetRuleArn(v string) *CreateRuleOutput
SetRuleArn sets the RuleArn field's value.
func (s *CreateRuleOutput) SetStatus(v string) *CreateRuleOutput
SetStatus sets the Status field's value.
func (s *CreateRuleOutput) SetTags(v []*Tag) *CreateRuleOutput
SetTags sets the Tags field's value.
func (s CreateRuleOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteRuleInput struct { // The unique ID of the retention rule. // // Identifier is a required field Identifier *string `location:"uri" locationName:"identifier" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteRuleInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteRuleInput) SetIdentifier(v string) *DeleteRuleInput
SetIdentifier sets the Identifier field's value.
func (s DeleteRuleInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteRuleInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteRuleOutput struct {
// contains filtered or unexported fields
}
func (s DeleteRuleOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s DeleteRuleOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetRuleInput struct { // The unique ID of the retention rule. // // Identifier is a required field Identifier *string `location:"uri" locationName:"identifier" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetRuleInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetRuleInput) SetIdentifier(v string) *GetRuleInput
SetIdentifier sets the Identifier field's value.
func (s GetRuleInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetRuleInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetRuleOutput struct { // The retention rule description. Description *string `type:"string"` // The unique ID of the retention rule. Identifier *string `type:"string"` // Information about the retention rule lock configuration. LockConfiguration *LockConfiguration `type:"structure"` // The date and time at which the unlock delay is set to expire. Only returned // for retention rules that have been unlocked and that are still within the // unlock delay period. LockEndTime *time.Time `type:"timestamp"` // The lock state for the retention rule. // // * locked - The retention rule is locked and can't be modified or deleted. // // * pending_unlock - The retention rule has been unlocked but it is still // within the unlock delay period. The retention rule can be modified or // deleted only after the unlock delay period has expired. // // * unlocked - The retention rule is unlocked and it can be modified or // deleted by any user with the required permissions. // // * null - The retention rule has never been locked. Once a retention rule // has been locked, it can transition between the locked and unlocked states // only; it can never transition back to null. LockState *string `type:"string" enum:"LockState"` // Information about the resource tags used to identify resources that are retained // by the retention rule. ResourceTags []*ResourceTag `type:"list"` // The resource type retained by the retention rule. ResourceType *string `type:"string" enum:"ResourceType"` // Information about the retention period for which the retention rule is to // retain resources. RetentionPeriod *RetentionPeriod `type:"structure"` // The Amazon Resource Name (ARN) of the retention rule. RuleArn *string `type:"string"` // The state of the retention rule. Only retention rules that are in the available // state retain resources. Status *string `type:"string" enum:"RuleStatus"` // contains filtered or unexported fields }
func (s GetRuleOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetRuleOutput) SetDescription(v string) *GetRuleOutput
SetDescription sets the Description field's value.
func (s *GetRuleOutput) SetIdentifier(v string) *GetRuleOutput
SetIdentifier sets the Identifier field's value.
func (s *GetRuleOutput) SetLockConfiguration(v *LockConfiguration) *GetRuleOutput
SetLockConfiguration sets the LockConfiguration field's value.
func (s *GetRuleOutput) SetLockEndTime(v time.Time) *GetRuleOutput
SetLockEndTime sets the LockEndTime field's value.
func (s *GetRuleOutput) SetLockState(v string) *GetRuleOutput
SetLockState sets the LockState field's value.
func (s *GetRuleOutput) SetResourceTags(v []*ResourceTag) *GetRuleOutput
SetResourceTags sets the ResourceTags field's value.
func (s *GetRuleOutput) SetResourceType(v string) *GetRuleOutput
SetResourceType sets the ResourceType field's value.
func (s *GetRuleOutput) SetRetentionPeriod(v *RetentionPeriod) *GetRuleOutput
SetRetentionPeriod sets the RetentionPeriod field's value.
func (s *GetRuleOutput) SetRuleArn(v string) *GetRuleOutput
SetRuleArn sets the RuleArn field's value.
func (s *GetRuleOutput) SetStatus(v string) *GetRuleOutput
SetStatus sets the Status field's value.
func (s GetRuleOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InternalServerException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
The service could not respond to the request due to an internal problem.
func (s *InternalServerException) Code() string
Code returns the exception type name.
func (s *InternalServerException) Error() string
func (s InternalServerException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InternalServerException) Message() string
Message returns the exception's message.
func (s *InternalServerException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InternalServerException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *InternalServerException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s InternalServerException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ListRulesInput struct { // The lock state of the retention rules to list. Only retention rules with // the specified lock state are returned. LockState *string `type:"string" enum:"LockState"` // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned NextToken value. MaxResults *int64 `min:"1" type:"integer"` // The token for the next page of results. NextToken *string `type:"string"` // Information about the resource tags used to identify resources that are retained // by the retention rule. ResourceTags []*ResourceTag `type:"list"` // The resource type retained by the retention rule. Only retention rules that // retain the specified resource type are listed. Currently, only Amazon EBS // snapshots and EBS-backed AMIs are supported. To list retention rules that // retain snapshots, specify EBS_SNAPSHOT. To list retention rules that retain // EBS-backed AMIs, specify EC2_IMAGE. // // ResourceType is a required field ResourceType *string `type:"string" required:"true" enum:"ResourceType"` // contains filtered or unexported fields }
func (s ListRulesInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListRulesInput) SetLockState(v string) *ListRulesInput
SetLockState sets the LockState field's value.
func (s *ListRulesInput) SetMaxResults(v int64) *ListRulesInput
SetMaxResults sets the MaxResults field's value.
func (s *ListRulesInput) SetNextToken(v string) *ListRulesInput
SetNextToken sets the NextToken field's value.
func (s *ListRulesInput) SetResourceTags(v []*ResourceTag) *ListRulesInput
SetResourceTags sets the ResourceTags field's value.
func (s *ListRulesInput) SetResourceType(v string) *ListRulesInput
SetResourceType sets the ResourceType field's value.
func (s ListRulesInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListRulesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListRulesOutput struct { // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `type:"string"` // Information about the retention rules. Rules []*RuleSummary `type:"list"` // contains filtered or unexported fields }
func (s ListRulesOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListRulesOutput) SetNextToken(v string) *ListRulesOutput
SetNextToken sets the NextToken field's value.
func (s *ListRulesOutput) SetRules(v []*RuleSummary) *ListRulesOutput
SetRules sets the Rules field's value.
func (s ListRulesOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ListTagsForResourceInput struct { // The Amazon Resource Name (ARN) of the retention rule. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (s ListTagsForResourceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput
SetResourceArn sets the ResourceArn field's value.
func (s ListTagsForResourceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListTagsForResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListTagsForResourceOutput struct { // Information about the tags assigned to the retention rule. Tags []*Tag `type:"list"` // contains filtered or unexported fields }
func (s ListTagsForResourceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput
SetTags sets the Tags field's value.
func (s ListTagsForResourceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type LockConfiguration struct { // Information about the retention rule unlock delay. // // UnlockDelay is a required field UnlockDelay *UnlockDelay `type:"structure" required:"true"` // contains filtered or unexported fields }
Information about a retention rule lock configuration.
func (s LockConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *LockConfiguration) SetUnlockDelay(v *UnlockDelay) *LockConfiguration
SetUnlockDelay sets the UnlockDelay field's value.
func (s LockConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *LockConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type LockRuleInput struct { // The unique ID of the retention rule. // // Identifier is a required field Identifier *string `location:"uri" locationName:"identifier" type:"string" required:"true"` // Information about the retention rule lock configuration. // // LockConfiguration is a required field LockConfiguration *LockConfiguration `type:"structure" required:"true"` // contains filtered or unexported fields }
func (s LockRuleInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *LockRuleInput) SetIdentifier(v string) *LockRuleInput
SetIdentifier sets the Identifier field's value.
func (s *LockRuleInput) SetLockConfiguration(v *LockConfiguration) *LockRuleInput
SetLockConfiguration sets the LockConfiguration field's value.
func (s LockRuleInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *LockRuleInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type LockRuleOutput struct { // The retention rule description. Description *string `type:"string"` // The unique ID of the retention rule. Identifier *string `type:"string"` // Information about the retention rule lock configuration. LockConfiguration *LockConfiguration `type:"structure"` // The lock state for the retention rule. // // * locked - The retention rule is locked and can't be modified or deleted. // // * pending_unlock - The retention rule has been unlocked but it is still // within the unlock delay period. The retention rule can be modified or // deleted only after the unlock delay period has expired. // // * unlocked - The retention rule is unlocked and it can be modified or // deleted by any user with the required permissions. // // * null - The retention rule has never been locked. Once a retention rule // has been locked, it can transition between the locked and unlocked states // only; it can never transition back to null. LockState *string `type:"string" enum:"LockState"` // Information about the resource tags used to identify resources that are retained // by the retention rule. ResourceTags []*ResourceTag `type:"list"` // The resource type retained by the retention rule. ResourceType *string `type:"string" enum:"ResourceType"` // Information about the retention period for which the retention rule is to // retain resources. RetentionPeriod *RetentionPeriod `type:"structure"` // The Amazon Resource Name (ARN) of the retention rule. RuleArn *string `type:"string"` // The state of the retention rule. Only retention rules that are in the available // state retain resources. Status *string `type:"string" enum:"RuleStatus"` // contains filtered or unexported fields }
func (s LockRuleOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *LockRuleOutput) SetDescription(v string) *LockRuleOutput
SetDescription sets the Description field's value.
func (s *LockRuleOutput) SetIdentifier(v string) *LockRuleOutput
SetIdentifier sets the Identifier field's value.
func (s *LockRuleOutput) SetLockConfiguration(v *LockConfiguration) *LockRuleOutput
SetLockConfiguration sets the LockConfiguration field's value.
func (s *LockRuleOutput) SetLockState(v string) *LockRuleOutput
SetLockState sets the LockState field's value.
func (s *LockRuleOutput) SetResourceTags(v []*ResourceTag) *LockRuleOutput
SetResourceTags sets the ResourceTags field's value.
func (s *LockRuleOutput) SetResourceType(v string) *LockRuleOutput
SetResourceType sets the ResourceType field's value.
func (s *LockRuleOutput) SetRetentionPeriod(v *RetentionPeriod) *LockRuleOutput
SetRetentionPeriod sets the RetentionPeriod field's value.
func (s *LockRuleOutput) SetRuleArn(v string) *LockRuleOutput
SetRuleArn sets the RuleArn field's value.
func (s *LockRuleOutput) SetStatus(v string) *LockRuleOutput
SetStatus sets the Status field's value.
func (s LockRuleOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type RecycleBin struct { *client.Client }
RecycleBin provides the API operation methods for making requests to Amazon Recycle Bin. See this package's package overview docs for details on the service.
RecycleBin methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New(p client.ConfigProvider, cfgs ...*aws.Config) *RecycleBin
New creates a new instance of the RecycleBin client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.
Example:
mySession := session.Must(session.NewSession()) // Create a RecycleBin client from just a session. svc := recyclebin.New(mySession) // Create a RecycleBin client with additional configuration svc := recyclebin.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (c *RecycleBin) CreateRule(input *CreateRuleInput) (*CreateRuleOutput, error)
CreateRule API operation for Amazon Recycle Bin.
Creates a Recycle Bin retention rule. For more information, see Create Recycle Bin retention rules (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-working-with-rules.html#recycle-bin-create-rule) in the Amazon Elastic Compute Cloud User Guide.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Recycle Bin's API operation CreateRule for usage and error information.
Returned Error Types:
ValidationException One or more of the parameters in the request is not valid.
ServiceQuotaExceededException The request would cause a service quota for the number of tags per resource to be exceeded.
InternalServerException The service could not respond to the request due to an internal problem.
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/CreateRule
func (c *RecycleBin) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, output *CreateRuleOutput)
CreateRuleRequest generates a "aws/request.Request" representing the client's request for the CreateRule operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateRule for more information on using the CreateRule API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateRuleRequest method. req, resp := client.CreateRuleRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/CreateRule
func (c *RecycleBin) CreateRuleWithContext(ctx aws.Context, input *CreateRuleInput, opts ...request.Option) (*CreateRuleOutput, error)
CreateRuleWithContext is the same as CreateRule with the addition of the ability to pass a context and additional request options.
See CreateRule for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *RecycleBin) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error)
DeleteRule API operation for Amazon Recycle Bin.
Deletes a Recycle Bin retention rule. For more information, see Delete Recycle Bin retention rules (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-working-with-rules.html#recycle-bin-delete-rule) in the Amazon Elastic Compute Cloud User Guide.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Recycle Bin's API operation DeleteRule for usage and error information.
Returned Error Types:
InternalServerException The service could not respond to the request due to an internal problem.
ResourceNotFoundException The specified resource was not found.
ValidationException One or more of the parameters in the request is not valid.
ConflictException The specified retention rule lock request can't be completed.
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/DeleteRule
func (c *RecycleBin) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, output *DeleteRuleOutput)
DeleteRuleRequest generates a "aws/request.Request" representing the client's request for the DeleteRule operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteRule for more information on using the DeleteRule API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteRuleRequest method. req, resp := client.DeleteRuleRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/DeleteRule
func (c *RecycleBin) DeleteRuleWithContext(ctx aws.Context, input *DeleteRuleInput, opts ...request.Option) (*DeleteRuleOutput, error)
DeleteRuleWithContext is the same as DeleteRule with the addition of the ability to pass a context and additional request options.
See DeleteRule for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *RecycleBin) GetRule(input *GetRuleInput) (*GetRuleOutput, error)
GetRule API operation for Amazon Recycle Bin.
Gets information about a Recycle Bin retention rule.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Recycle Bin's API operation GetRule for usage and error information.
Returned Error Types:
ValidationException One or more of the parameters in the request is not valid.
InternalServerException The service could not respond to the request due to an internal problem.
ResourceNotFoundException The specified resource was not found.
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/GetRule
func (c *RecycleBin) GetRuleRequest(input *GetRuleInput) (req *request.Request, output *GetRuleOutput)
GetRuleRequest generates a "aws/request.Request" representing the client's request for the GetRule operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetRule for more information on using the GetRule API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetRuleRequest method. req, resp := client.GetRuleRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/GetRule
func (c *RecycleBin) GetRuleWithContext(ctx aws.Context, input *GetRuleInput, opts ...request.Option) (*GetRuleOutput, error)
GetRuleWithContext is the same as GetRule with the addition of the ability to pass a context and additional request options.
See GetRule for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *RecycleBin) ListRules(input *ListRulesInput) (*ListRulesOutput, error)
ListRules API operation for Amazon Recycle Bin.
Lists the Recycle Bin retention rules in the Region.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Recycle Bin's API operation ListRules for usage and error information.
Returned Error Types:
ValidationException One or more of the parameters in the request is not valid.
InternalServerException The service could not respond to the request due to an internal problem.
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/ListRules
func (c *RecycleBin) ListRulesPages(input *ListRulesInput, fn func(*ListRulesOutput, bool) bool) error
ListRulesPages iterates over the pages of a ListRules operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListRules method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListRules operation. pageNum := 0 err := client.ListRulesPages(params, func(page *recyclebin.ListRulesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (c *RecycleBin) ListRulesPagesWithContext(ctx aws.Context, input *ListRulesInput, fn func(*ListRulesOutput, bool) bool, opts ...request.Option) error
ListRulesPagesWithContext same as ListRulesPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *RecycleBin) ListRulesRequest(input *ListRulesInput) (req *request.Request, output *ListRulesOutput)
ListRulesRequest generates a "aws/request.Request" representing the client's request for the ListRules operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListRules for more information on using the ListRules API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListRulesRequest method. req, resp := client.ListRulesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/ListRules
func (c *RecycleBin) ListRulesWithContext(ctx aws.Context, input *ListRulesInput, opts ...request.Option) (*ListRulesOutput, error)
ListRulesWithContext is the same as ListRules with the addition of the ability to pass a context and additional request options.
See ListRules for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *RecycleBin) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)
ListTagsForResource API operation for Amazon Recycle Bin.
Lists the tags assigned to a retention rule.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Recycle Bin's API operation ListTagsForResource for usage and error information.
Returned Error Types:
ValidationException One or more of the parameters in the request is not valid.
InternalServerException The service could not respond to the request due to an internal problem.
ResourceNotFoundException The specified resource was not found.
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/ListTagsForResource
func (c *RecycleBin) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput)
ListTagsForResourceRequest generates a "aws/request.Request" representing the client's request for the ListTagsForResource operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListTagsForResource for more information on using the ListTagsForResource API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListTagsForResourceRequest method. req, resp := client.ListTagsForResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/ListTagsForResource
func (c *RecycleBin) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error)
ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of the ability to pass a context and additional request options.
See ListTagsForResource for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *RecycleBin) LockRule(input *LockRuleInput) (*LockRuleOutput, error)
LockRule API operation for Amazon Recycle Bin.
Locks a retention rule. A locked retention rule can't be modified or deleted.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Recycle Bin's API operation LockRule for usage and error information.
Returned Error Types:
InternalServerException The service could not respond to the request due to an internal problem.
ResourceNotFoundException The specified resource was not found.
ValidationException One or more of the parameters in the request is not valid.
ConflictException The specified retention rule lock request can't be completed.
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/LockRule
func (c *RecycleBin) LockRuleRequest(input *LockRuleInput) (req *request.Request, output *LockRuleOutput)
LockRuleRequest generates a "aws/request.Request" representing the client's request for the LockRule operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See LockRule for more information on using the LockRule API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the LockRuleRequest method. req, resp := client.LockRuleRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/LockRule
func (c *RecycleBin) LockRuleWithContext(ctx aws.Context, input *LockRuleInput, opts ...request.Option) (*LockRuleOutput, error)
LockRuleWithContext is the same as LockRule with the addition of the ability to pass a context and additional request options.
See LockRule for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *RecycleBin) TagResource(input *TagResourceInput) (*TagResourceOutput, error)
TagResource API operation for Amazon Recycle Bin.
Assigns tags to the specified retention rule.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Recycle Bin's API operation TagResource for usage and error information.
Returned Error Types:
ValidationException One or more of the parameters in the request is not valid.
InternalServerException The service could not respond to the request due to an internal problem.
ResourceNotFoundException The specified resource was not found.
ServiceQuotaExceededException The request would cause a service quota for the number of tags per resource to be exceeded.
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/TagResource
func (c *RecycleBin) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput)
TagResourceRequest generates a "aws/request.Request" representing the client's request for the TagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See TagResource for more information on using the TagResource API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the TagResourceRequest method. req, resp := client.TagResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/TagResource
func (c *RecycleBin) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error)
TagResourceWithContext is the same as TagResource with the addition of the ability to pass a context and additional request options.
See TagResource for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *RecycleBin) UnlockRule(input *UnlockRuleInput) (*UnlockRuleOutput, error)
UnlockRule API operation for Amazon Recycle Bin.
Unlocks a retention rule. After a retention rule is unlocked, it can be modified or deleted only after the unlock delay period expires.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Recycle Bin's API operation UnlockRule for usage and error information.
Returned Error Types:
InternalServerException The service could not respond to the request due to an internal problem.
ResourceNotFoundException The specified resource was not found.
ValidationException One or more of the parameters in the request is not valid.
ConflictException The specified retention rule lock request can't be completed.
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UnlockRule
func (c *RecycleBin) UnlockRuleRequest(input *UnlockRuleInput) (req *request.Request, output *UnlockRuleOutput)
UnlockRuleRequest generates a "aws/request.Request" representing the client's request for the UnlockRule operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See UnlockRule for more information on using the UnlockRule API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the UnlockRuleRequest method. req, resp := client.UnlockRuleRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UnlockRule
func (c *RecycleBin) UnlockRuleWithContext(ctx aws.Context, input *UnlockRuleInput, opts ...request.Option) (*UnlockRuleOutput, error)
UnlockRuleWithContext is the same as UnlockRule with the addition of the ability to pass a context and additional request options.
See UnlockRule for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *RecycleBin) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error)
UntagResource API operation for Amazon Recycle Bin.
Unassigns a tag from a retention rule.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Recycle Bin's API operation UntagResource for usage and error information.
Returned Error Types:
ValidationException One or more of the parameters in the request is not valid.
InternalServerException The service could not respond to the request due to an internal problem.
ResourceNotFoundException The specified resource was not found.
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UntagResource
func (c *RecycleBin) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput)
UntagResourceRequest generates a "aws/request.Request" representing the client's request for the UntagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See UntagResource for more information on using the UntagResource API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the UntagResourceRequest method. req, resp := client.UntagResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UntagResource
func (c *RecycleBin) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error)
UntagResourceWithContext is the same as UntagResource with the addition of the ability to pass a context and additional request options.
See UntagResource for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *RecycleBin) UpdateRule(input *UpdateRuleInput) (*UpdateRuleOutput, error)
UpdateRule API operation for Amazon Recycle Bin.
Updates an existing Recycle Bin retention rule. You can update a retention rule's description, resource tags, and retention period at any time after creation. You can't update a retention rule's resource type after creation. For more information, see Update Recycle Bin retention rules (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-working-with-rules.html#recycle-bin-update-rule) in the Amazon Elastic Compute Cloud User Guide.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Recycle Bin's API operation UpdateRule for usage and error information.
Returned Error Types:
ValidationException One or more of the parameters in the request is not valid.
InternalServerException The service could not respond to the request due to an internal problem.
ResourceNotFoundException The specified resource was not found.
ConflictException The specified retention rule lock request can't be completed.
ServiceQuotaExceededException The request would cause a service quota for the number of tags per resource to be exceeded.
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UpdateRule
func (c *RecycleBin) UpdateRuleRequest(input *UpdateRuleInput) (req *request.Request, output *UpdateRuleOutput)
UpdateRuleRequest generates a "aws/request.Request" representing the client's request for the UpdateRule operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See UpdateRule for more information on using the UpdateRule API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the UpdateRuleRequest method. req, resp := client.UpdateRuleRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UpdateRule
func (c *RecycleBin) UpdateRuleWithContext(ctx aws.Context, input *UpdateRuleInput, opts ...request.Option) (*UpdateRuleOutput, error)
UpdateRuleWithContext is the same as UpdateRule with the addition of the ability to pass a context and additional request options.
See UpdateRule for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
type ResourceNotFoundException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // The reason for the exception. Reason *string `type:"string" enum:"ResourceNotFoundExceptionReason"` // contains filtered or unexported fields }
The specified resource was not found.
func (s *ResourceNotFoundException) Code() string
Code returns the exception type name.
func (s *ResourceNotFoundException) Error() string
func (s ResourceNotFoundException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ResourceNotFoundException) Message() string
Message returns the exception's message.
func (s *ResourceNotFoundException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ResourceNotFoundException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ResourceNotFoundException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s ResourceNotFoundException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ResourceTag struct { // The tag key. // // ResourceTagKey is a required field ResourceTagKey *string `type:"string" required:"true"` // The tag value. ResourceTagValue *string `type:"string"` // contains filtered or unexported fields }
Information about the resource tags used to identify resources that are retained by the retention rule.
func (s ResourceTag) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ResourceTag) SetResourceTagKey(v string) *ResourceTag
SetResourceTagKey sets the ResourceTagKey field's value.
func (s *ResourceTag) SetResourceTagValue(v string) *ResourceTag
SetResourceTagValue sets the ResourceTagValue field's value.
func (s ResourceTag) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ResourceTag) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RetentionPeriod struct { // The unit of time in which the retention period is measured. Currently, only // DAYS is supported. // // RetentionPeriodUnit is a required field RetentionPeriodUnit *string `type:"string" required:"true" enum:"RetentionPeriodUnit"` // The period value for which the retention rule is to retain resources. The // period is measured using the unit specified for RetentionPeriodUnit. // // RetentionPeriodValue is a required field RetentionPeriodValue *int64 `min:"1" type:"integer" required:"true"` // contains filtered or unexported fields }
Information about the retention period for which the retention rule is to retain resources.
func (s RetentionPeriod) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *RetentionPeriod) SetRetentionPeriodUnit(v string) *RetentionPeriod
SetRetentionPeriodUnit sets the RetentionPeriodUnit field's value.
func (s *RetentionPeriod) SetRetentionPeriodValue(v int64) *RetentionPeriod
SetRetentionPeriodValue sets the RetentionPeriodValue field's value.
func (s RetentionPeriod) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *RetentionPeriod) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RuleSummary struct { // The retention rule description. Description *string `type:"string"` // The unique ID of the retention rule. Identifier *string `type:"string"` // The lock state for the retention rule. // // * locked - The retention rule is locked and can't be modified or deleted. // // * pending_unlock - The retention rule has been unlocked but it is still // within the unlock delay period. The retention rule can be modified or // deleted only after the unlock delay period has expired. // // * unlocked - The retention rule is unlocked and it can be modified or // deleted by any user with the required permissions. // // * null - The retention rule has never been locked. Once a retention rule // has been locked, it can transition between the locked and unlocked states // only; it can never transition back to null. LockState *string `type:"string" enum:"LockState"` // Information about the retention period for which the retention rule is to // retain resources. RetentionPeriod *RetentionPeriod `type:"structure"` // The Amazon Resource Name (ARN) of the retention rule. RuleArn *string `type:"string"` // contains filtered or unexported fields }
Information about a Recycle Bin retention rule.
func (s RuleSummary) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *RuleSummary) SetDescription(v string) *RuleSummary
SetDescription sets the Description field's value.
func (s *RuleSummary) SetIdentifier(v string) *RuleSummary
SetIdentifier sets the Identifier field's value.
func (s *RuleSummary) SetLockState(v string) *RuleSummary
SetLockState sets the LockState field's value.
func (s *RuleSummary) SetRetentionPeriod(v *RetentionPeriod) *RuleSummary
SetRetentionPeriod sets the RetentionPeriod field's value.
func (s *RuleSummary) SetRuleArn(v string) *RuleSummary
SetRuleArn sets the RuleArn field's value.
func (s RuleSummary) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ServiceQuotaExceededException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // The reason for the exception. Reason *string `type:"string" enum:"ServiceQuotaExceededExceptionReason"` // contains filtered or unexported fields }
The request would cause a service quota for the number of tags per resource to be exceeded.
func (s *ServiceQuotaExceededException) Code() string
Code returns the exception type name.
func (s *ServiceQuotaExceededException) Error() string
func (s ServiceQuotaExceededException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ServiceQuotaExceededException) Message() string
Message returns the exception's message.
func (s *ServiceQuotaExceededException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ServiceQuotaExceededException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ServiceQuotaExceededException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s ServiceQuotaExceededException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type Tag struct { // The tag key. // // Key is a required field Key *string `min:"1" type:"string" required:"true"` // The tag value. // // Value is a required field Value *string `type:"string" required:"true"` // contains filtered or unexported fields }
Information about the tags to assign to the retention rule.
func (s Tag) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *Tag) SetKey(v string) *Tag
SetKey sets the Key field's value.
func (s *Tag) SetValue(v string) *Tag
SetValue sets the Value field's value.
func (s Tag) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *Tag) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TagResourceInput struct { // The Amazon Resource Name (ARN) of the retention rule. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` // Information about the tags to assign to the retention rule. // // Tags is a required field Tags []*Tag `type:"list" required:"true"` // contains filtered or unexported fields }
func (s TagResourceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput
SetResourceArn sets the ResourceArn field's value.
func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput
SetTags sets the Tags field's value.
func (s TagResourceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *TagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TagResourceOutput struct {
// contains filtered or unexported fields
}
func (s TagResourceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s TagResourceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type UnlockDelay struct { // The unit of time in which to measure the unlock delay. Currently, the unlock // delay can be measure only in days. // // UnlockDelayUnit is a required field UnlockDelayUnit *string `type:"string" required:"true" enum:"UnlockDelayUnit"` // The unlock delay period, measured in the unit specified for UnlockDelayUnit. // // UnlockDelayValue is a required field UnlockDelayValue *int64 `min:"7" type:"integer" required:"true"` // contains filtered or unexported fields }
Information about the retention rule unlock delay. The unlock delay is the period after which a retention rule can be modified or edited after it has been unlocked by a user with the required permissions. The retention rule can't be modified or deleted during the unlock delay.
func (s UnlockDelay) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UnlockDelay) SetUnlockDelayUnit(v string) *UnlockDelay
SetUnlockDelayUnit sets the UnlockDelayUnit field's value.
func (s *UnlockDelay) SetUnlockDelayValue(v int64) *UnlockDelay
SetUnlockDelayValue sets the UnlockDelayValue field's value.
func (s UnlockDelay) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UnlockDelay) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UnlockRuleInput struct { // The unique ID of the retention rule. // // Identifier is a required field Identifier *string `location:"uri" locationName:"identifier" type:"string" required:"true"` // contains filtered or unexported fields }
func (s UnlockRuleInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UnlockRuleInput) SetIdentifier(v string) *UnlockRuleInput
SetIdentifier sets the Identifier field's value.
func (s UnlockRuleInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UnlockRuleInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UnlockRuleOutput struct { // The retention rule description. Description *string `type:"string"` // The unique ID of the retention rule. Identifier *string `type:"string"` // Information about the retention rule lock configuration. LockConfiguration *LockConfiguration `type:"structure"` // The date and time at which the unlock delay is set to expire. Only returned // for retention rules that have been unlocked and that are still within the // unlock delay period. LockEndTime *time.Time `type:"timestamp"` // The lock state for the retention rule. // // * locked - The retention rule is locked and can't be modified or deleted. // // * pending_unlock - The retention rule has been unlocked but it is still // within the unlock delay period. The retention rule can be modified or // deleted only after the unlock delay period has expired. // // * unlocked - The retention rule is unlocked and it can be modified or // deleted by any user with the required permissions. // // * null - The retention rule has never been locked. Once a retention rule // has been locked, it can transition between the locked and unlocked states // only; it can never transition back to null. LockState *string `type:"string" enum:"LockState"` // Information about the resource tags used to identify resources that are retained // by the retention rule. ResourceTags []*ResourceTag `type:"list"` // The resource type retained by the retention rule. ResourceType *string `type:"string" enum:"ResourceType"` // Information about the retention period for which the retention rule is to // retain resources. RetentionPeriod *RetentionPeriod `type:"structure"` // The Amazon Resource Name (ARN) of the retention rule. RuleArn *string `type:"string"` // The state of the retention rule. Only retention rules that are in the available // state retain resources. Status *string `type:"string" enum:"RuleStatus"` // contains filtered or unexported fields }
func (s UnlockRuleOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UnlockRuleOutput) SetDescription(v string) *UnlockRuleOutput
SetDescription sets the Description field's value.
func (s *UnlockRuleOutput) SetIdentifier(v string) *UnlockRuleOutput
SetIdentifier sets the Identifier field's value.
func (s *UnlockRuleOutput) SetLockConfiguration(v *LockConfiguration) *UnlockRuleOutput
SetLockConfiguration sets the LockConfiguration field's value.
func (s *UnlockRuleOutput) SetLockEndTime(v time.Time) *UnlockRuleOutput
SetLockEndTime sets the LockEndTime field's value.
func (s *UnlockRuleOutput) SetLockState(v string) *UnlockRuleOutput
SetLockState sets the LockState field's value.
func (s *UnlockRuleOutput) SetResourceTags(v []*ResourceTag) *UnlockRuleOutput
SetResourceTags sets the ResourceTags field's value.
func (s *UnlockRuleOutput) SetResourceType(v string) *UnlockRuleOutput
SetResourceType sets the ResourceType field's value.
func (s *UnlockRuleOutput) SetRetentionPeriod(v *RetentionPeriod) *UnlockRuleOutput
SetRetentionPeriod sets the RetentionPeriod field's value.
func (s *UnlockRuleOutput) SetRuleArn(v string) *UnlockRuleOutput
SetRuleArn sets the RuleArn field's value.
func (s *UnlockRuleOutput) SetStatus(v string) *UnlockRuleOutput
SetStatus sets the Status field's value.
func (s UnlockRuleOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type UntagResourceInput struct { // The Amazon Resource Name (ARN) of the retention rule. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` // The tag keys of the tags to unassign. All tags that have the specified tag // key are unassigned. // // TagKeys is a required field TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"` // contains filtered or unexported fields }
func (s UntagResourceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput
SetResourceArn sets the ResourceArn field's value.
func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput
SetTagKeys sets the TagKeys field's value.
func (s UntagResourceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UntagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UntagResourceOutput struct {
// contains filtered or unexported fields
}
func (s UntagResourceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s UntagResourceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type UpdateRuleInput struct { // The retention rule description. Description *string `type:"string"` // The unique ID of the retention rule. // // Identifier is a required field Identifier *string `location:"uri" locationName:"identifier" type:"string" required:"true"` // Specifies the resource tags to use to identify resources that are to be retained // by a tag-level retention rule. For tag-level retention rules, only deleted // resources, of the specified resource type, that have one or more of the specified // tag key and value pairs are retained. If a resource is deleted, but it does // not have any of the specified tag key and value pairs, it is immediately // deleted without being retained by the retention rule. // // You can add the same tag key and value pair to a maximum or five retention // rules. // // To create a Region-level retention rule, omit this parameter. A Region-level // retention rule does not have any resource tags specified. It retains all // deleted resources of the specified resource type in the Region in which the // rule is created, even if the resources are not tagged. ResourceTags []*ResourceTag `type:"list"` // // This parameter is currently not supported. You can't update a retention rule's // resource type after creation. ResourceType *string `type:"string" enum:"ResourceType"` // Information about the retention period for which the retention rule is to // retain resources. RetentionPeriod *RetentionPeriod `type:"structure"` // contains filtered or unexported fields }
func (s UpdateRuleInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UpdateRuleInput) SetDescription(v string) *UpdateRuleInput
SetDescription sets the Description field's value.
func (s *UpdateRuleInput) SetIdentifier(v string) *UpdateRuleInput
SetIdentifier sets the Identifier field's value.
func (s *UpdateRuleInput) SetResourceTags(v []*ResourceTag) *UpdateRuleInput
SetResourceTags sets the ResourceTags field's value.
func (s *UpdateRuleInput) SetResourceType(v string) *UpdateRuleInput
SetResourceType sets the ResourceType field's value.
func (s *UpdateRuleInput) SetRetentionPeriod(v *RetentionPeriod) *UpdateRuleInput
SetRetentionPeriod sets the RetentionPeriod field's value.
func (s UpdateRuleInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UpdateRuleInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateRuleOutput struct { // The retention rule description. Description *string `type:"string"` // The unique ID of the retention rule. Identifier *string `type:"string"` // The date and time at which the unlock delay is set to expire. Only returned // for retention rules that have been unlocked and that are still within the // unlock delay period. LockEndTime *time.Time `type:"timestamp"` // The lock state for the retention rule. // // * locked - The retention rule is locked and can't be modified or deleted. // // * pending_unlock - The retention rule has been unlocked but it is still // within the unlock delay period. The retention rule can be modified or // deleted only after the unlock delay period has expired. // // * unlocked - The retention rule is unlocked and it can be modified or // deleted by any user with the required permissions. // // * null - The retention rule has never been locked. Once a retention rule // has been locked, it can transition between the locked and unlocked states // only; it can never transition back to null. LockState *string `type:"string" enum:"LockState"` // Information about the resource tags used to identify resources that are retained // by the retention rule. ResourceTags []*ResourceTag `type:"list"` // The resource type retained by the retention rule. ResourceType *string `type:"string" enum:"ResourceType"` // Information about the retention period for which the retention rule is to // retain resources. RetentionPeriod *RetentionPeriod `type:"structure"` // The Amazon Resource Name (ARN) of the retention rule. RuleArn *string `type:"string"` // The state of the retention rule. Only retention rules that are in the available // state retain resources. Status *string `type:"string" enum:"RuleStatus"` // contains filtered or unexported fields }
func (s UpdateRuleOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UpdateRuleOutput) SetDescription(v string) *UpdateRuleOutput
SetDescription sets the Description field's value.
func (s *UpdateRuleOutput) SetIdentifier(v string) *UpdateRuleOutput
SetIdentifier sets the Identifier field's value.
func (s *UpdateRuleOutput) SetLockEndTime(v time.Time) *UpdateRuleOutput
SetLockEndTime sets the LockEndTime field's value.
func (s *UpdateRuleOutput) SetLockState(v string) *UpdateRuleOutput
SetLockState sets the LockState field's value.
func (s *UpdateRuleOutput) SetResourceTags(v []*ResourceTag) *UpdateRuleOutput
SetResourceTags sets the ResourceTags field's value.
func (s *UpdateRuleOutput) SetResourceType(v string) *UpdateRuleOutput
SetResourceType sets the ResourceType field's value.
func (s *UpdateRuleOutput) SetRetentionPeriod(v *RetentionPeriod) *UpdateRuleOutput
SetRetentionPeriod sets the RetentionPeriod field's value.
func (s *UpdateRuleOutput) SetRuleArn(v string) *UpdateRuleOutput
SetRuleArn sets the RuleArn field's value.
func (s *UpdateRuleOutput) SetStatus(v string) *UpdateRuleOutput
SetStatus sets the Status field's value.
func (s UpdateRuleOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ValidationException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // The reason for the exception. Reason *string `type:"string" enum:"ValidationExceptionReason"` // contains filtered or unexported fields }
One or more of the parameters in the request is not valid.
func (s *ValidationException) Code() string
Code returns the exception type name.
func (s *ValidationException) Error() string
func (s ValidationException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ValidationException) Message() string
Message returns the exception's message.
func (s *ValidationException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ValidationException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ValidationException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s ValidationException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".