All Known Subinterfaces:
S3Resource
All Known Implementing Classes:
S3AccessPointResource, S3BucketResource, S3ControlBucketResource, S3ObjectLambdaResource, S3ObjectResource, S3OutpostResource

public interface AwsResource
An abstract representation of an AWS Resource. Provides an interface to properties that are common across all AWS resource types. Services may provide concrete implementations that can be found in each service module.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the account ID associated with the AWS Resource if one has been specified.
    Gets the partition associated with the AWS Resource (e.g.: 'aws') if one has been specified.
    Gets the region associated with the AWS Resource (e.g.: 'us-east-1') if one has been specified.
  • Method Details

    • partition

      Optional<String> partition()
      Gets the partition associated with the AWS Resource (e.g.: 'aws') if one has been specified.
      Returns:
      the optional value for the partition.
    • region

      Optional<String> region()
      Gets the region associated with the AWS Resource (e.g.: 'us-east-1') if one has been specified.
      Returns:
      the optional value for the region.
    • accountId

      Optional<String> accountId()
      Gets the account ID associated with the AWS Resource if one has been specified.
      Returns:
      the optional value for the account ID.