Class GetBucketResult


  • public final class GetBucketResult
    extends java.lang.Object
    • Method Detail

      • arn

        public java.lang.String arn()
        Returns:
        ARN of the bucket. Will be of format `arn:aws:s3:::bucketname`.
      • bucket

        public java.lang.String bucket()
      • bucketDomainName

        public java.lang.String bucketDomainName()
        Returns:
        Bucket domain name. Will be of format `bucketname.s3.amazonaws.com`.
      • bucketRegion

        public java.lang.String bucketRegion()
        Returns:
        AWS region this bucket resides in.
      • bucketRegionalDomainName

        public java.lang.String bucketRegionalDomainName()
        Returns:
        Bucket region-specific domain name. The bucket domain name including the region name. Please refer to the [S3 endpoints reference](https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_region) for format. Note: AWS CloudFront allows specifying an S3 region-specific endpoint when creating an S3 origin. This will prevent redirect issues from CloudFront to the S3 Origin URL. For more information, see the [Virtual Hosted-Style Requests for Other Regions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html#deprecated-global-endpoint) section in the AWS S3 User Guide.
      • hostedZoneId

        public java.lang.String hostedZoneId()
        Returns:
        [Route 53 Hosted Zone ID](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_website_region_endpoints) for this bucket's region.
      • id

        public java.lang.String id()
        Returns:
        The provider-assigned unique ID for this managed resource.
      • region

        public java.lang.String region()
      • websiteDomain

        public java.lang.String websiteDomain()
        Returns:
        Domain of the website endpoint, if the bucket is configured with a website. If not, this will be an empty string. This is used to create Route 53 alias records.
      • websiteEndpoint

        public java.lang.String websiteEndpoint()
        Returns:
        Website endpoint, if the bucket is configured with a website. If not, this will be an empty string.