// Returns the default encryption configuration for an Amazon S3 bucket. For
// information about the Amazon S3 default encryption feature, see Amazon S3
// Default Bucket Encryption
// (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). To use
// this operation, you must have permission to perform the
// s3:GetEncryptionConfiguration action. The bucket owner has this permission by
// default. The bucket owner can grant this permission to others. For more
// information about permissions, see Permissions Related to Bucket Subresource
// Operations
// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
// and Managing Access Permissions to Your Amazon S3 Resources
// (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html). The
// following operations are related to GetBucketEncryption:
//
// * PutBucketEncryption
// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketEncryption.html)
//
// *
// DeleteBucketEncryption
// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketEncryption.html)
Returns the default encryption configuration for an Amazon S3 bucket. For
information about the Amazon S3 default encryption feature, see Amazon S3
Default Bucket Encryption
. To use
this operation, you must have permission to perform the
s3:GetEncryptionConfiguration action. The bucket owner has this permission by
default. The bucket owner can grant this permission to others. For more
information about permissions, see Permissions Related to Bucket Subresource
Operations

and Managing Access Permissions to Your Amazon S3 Resources
. The
following operations are related to GetBucketEncryption.

PutBucketEncryption

DeleteBucketEncryption
// Returns the default encryption configuration for an Amazon S3 bucket . For // information about the Amazon S3 default encryption feature see Amazon S3 // Default Bucket Encryption // ( https : // docs . aws . amazon . com / AmazonS3 / latest / dev / bucket - encryption . html ) . To use // this operation you must have permission to perform the // s3 : GetEncryptionConfiguration action . The bucket owner has this permission by // default . The bucket owner can grant this permission to others . For more // information about permissions see Permissions Related to Bucket Subresource // Operations // ( https : // docs . aws . amazon . com / AmazonS3 / latest / dev / using - with - s3 - actions . html#using - with - s3 - actions - related - to - bucket - subresources ) // and Managing Access Permissions to Your Amazon S3 Resources // ( https : // docs . aws . amazon . com / AmazonS3 / latest / dev / s3 - access - control . html ) . The // following operations are related to GetBucketEncryption : // // * PutBucketEncryption // ( https : // docs . aws . amazon . com / AmazonS3 / latest / API / API_PutBucketEncryption . html ) // // * // DeleteBucketEncryption // ( https : // docs . aws . amazon . com / AmazonS3 / latest / API / API_DeleteBucketEncryption . html )
func (c *Client) GetBucketEncryption(ctx context.Context, params *GetBucketEncryptionInput, optFns ...func(*Options)) (*GetBucketEncryptionOutput, error) {
	if params == nil {
		params = &GetBucketEncryptionInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "GetBucketEncryption", params, optFns, addOperationGetBucketEncryptionMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*GetBucketEncryptionOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) GetBucketEncryption ( ctx context . Context , params * GetBucketEncryptionInput , optFns ... func ( * Options ) ) ( * GetBucketEncryptionOutput , error ) { if params == nil { params = & GetBucketEncryptionInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationGetBucketEncryptionMiddlewares ) if err != nil { return nil , err } out := result . ( * GetBucketEncryptionOutput ) out . ResultMetadata = metadata return out , nil }
Returns the default encryption configuration for an Amazon S3 bucket.
Returns the default encryption configuration for an Amazon S3 bucket .