Class DeleteBucketRequest

    • Method Detail

      • bucketName

        public final String bucketName()

        The name of the bucket to delete.

        Use the GetBuckets action to get a list of bucket names that you can specify.

        Returns:
        The name of the bucket to delete.

        Use the GetBuckets action to get a list of bucket names that you can specify.

      • forceDelete

        public final Boolean forceDelete()

        A Boolean value that indicates whether to force delete the bucket.

        You must force delete the bucket if it has one of the following conditions:

        • The bucket is the origin of a distribution.

        • The bucket has instances that were granted access to it using the SetResourceAccessForBucket action.

        • The bucket has objects.

        • The bucket has access keys.

        Force deleting a bucket might impact other resources that rely on the bucket, such as instances, distributions, or software that use the issued access keys.

        Returns:
        A Boolean value that indicates whether to force delete the bucket.

        You must force delete the bucket if it has one of the following conditions:

        • The bucket is the origin of a distribution.

        • The bucket has instances that were granted access to it using the SetResourceAccessForBucket action.

        • The bucket has objects.

        • The bucket has access keys.

        Force deleting a bucket might impact other resources that rely on the bucket, such as instances, distributions, or software that use the issued access keys.

      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object