// This API action puts a lifecycle configuration to an Amazon S3 on Outposts
// bucket. To put a lifecycle configuration to an S3 bucket, see
// PutBucketLifecycleConfiguration
// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html)
// in the Amazon Simple Storage Service API. Creates a new lifecycle configuration
// for the Outposts bucket or replaces an existing lifecycle configuration.
// Outposts buckets can only support a lifecycle that deletes objects after a
// certain period of time. For more information, see Managing Lifecycle Permissions
// for Amazon S3 on Outposts
// (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html). All Amazon
// S3 on Outposts REST API requests for this action require an additional parameter
// of outpost-id to be passed with the request and an S3 on Outposts endpoint
// hostname prefix instead of s3-control. For an example of the request syntax for
// Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and
// the outpost-id derived using the access point ARN, see the  Example
// (https://docs.aws.amazon.com/AmazonS3/latest/API/API__control_PutBucketLifecycleConfiguration.html#API_control_PutBucketLifecycleConfiguration_Examples)
// section below. The following actions are related to
// PutBucketLifecycleConfiguration:
//
// * GetBucketLifecycleConfiguration
// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketLifecycleConfiguration.html)
//
// *
// DeleteBucketLifecycleConfiguration
// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucketLifecycleConfiguration.html)
This API action puts a lifecycle configuration to an Amazon S3 on Outposts
bucket. To put a lifecycle configuration to an S3 bucket, see
PutBucketLifecycleConfiguration

in the Amazon Simple Storage Service API. Creates a new lifecycle configuration
for the Outposts bucket or replaces an existing lifecycle configuration.
Outposts buckets can only support a lifecycle that deletes objects after a
certain period of time. For more information, see Managing Lifecycle Permissions
for Amazon S3 on Outposts
. All Amazon
S3 on Outposts REST API requests for this action require an additional parameter
of outpost-id to be passed with the request and an S3 on Outposts endpoint
hostname prefix instead of s3-control. For an example of the request syntax for
Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and
the outpost-id derived using the access point ARN, see the  Example

section below. The following actions are related to
PutBucketLifecycleConfiguration.

GetBucketLifecycleConfiguration

DeleteBucketLifecycleConfiguration
// This API action puts a lifecycle configuration to an Amazon S3 on Outposts // bucket . To put a lifecycle configuration to an S3 bucket see // PutBucketLifecycleConfiguration // ( https : // docs . aws . amazon . com / AmazonS3 / latest / API / API_PutBucketLifecycleConfiguration . html ) // in the Amazon Simple Storage Service API . Creates a new lifecycle configuration // for the Outposts bucket or replaces an existing lifecycle configuration . // Outposts buckets can only support a lifecycle that deletes objects after a // certain period of time . For more information see Managing Lifecycle Permissions // for Amazon S3 on Outposts // ( https : // docs . aws . amazon . com / AmazonS3 / latest / dev / S3onOutposts . html ) . All Amazon // S3 on Outposts REST API requests for this action require an additional parameter // of outpost - id to be passed with the request and an S3 on Outposts endpoint // hostname prefix instead of s3 - control . For an example of the request syntax for // Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and // the outpost - id derived using the access point ARN see the Example // ( https : // docs . aws . amazon . com / AmazonS3 / latest / API / API__control_PutBucketLifecycleConfiguration . html#API_control_PutBucketLifecycleConfiguration_Examples ) // section below . The following actions are related to // PutBucketLifecycleConfiguration : // // * GetBucketLifecycleConfiguration // ( https : // docs . aws . amazon . com / AmazonS3 / latest / API / API_control_GetBucketLifecycleConfiguration . html ) // // * // DeleteBucketLifecycleConfiguration // ( https : // docs . aws . amazon . com / AmazonS3 / latest / API / API_control_DeleteBucketLifecycleConfiguration . html )
func (c *Client) PutBucketLifecycleConfiguration(ctx context.Context, params *PutBucketLifecycleConfigurationInput, optFns ...func(*Options)) (*PutBucketLifecycleConfigurationOutput, error) {
	if params == nil {
		params = &PutBucketLifecycleConfigurationInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "PutBucketLifecycleConfiguration", params, optFns, addOperationPutBucketLifecycleConfigurationMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*PutBucketLifecycleConfigurationOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) PutBucketLifecycleConfiguration ( ctx context . Context , params * PutBucketLifecycleConfigurationInput , optFns ... func ( * Options ) ) ( * PutBucketLifecycleConfigurationOutput , error ) { if params == nil { params = & PutBucketLifecycleConfigurationInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationPutBucketLifecycleConfigurationMiddlewares ) if err != nil { return nil , err } out := result . ( * PutBucketLifecycleConfigurationOutput ) out . ResultMetadata = metadata return out , nil }
This API action puts a lifecycle configuration to an Amazon S3 on Outposts
bucket.
This API action puts a lifecycle configuration to an Amazon S3 on Outposts bucket .