Interface AwsResource
-
- All Known Subinterfaces:
S3Resource
- All Known Implementing Classes:
S3AccessPointResource
,S3BucketResource
,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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<String>
accountId()
Gets the account ID associated with the AWS Resource if one has been specified.Optional<String>
partition()
Gets the partition associated with the AWS Resource (e.g.: 'aws') if one has been specified.Optional<String>
region()
Gets the region associated with the AWS Resource (e.g.: 'us-east-1') if one has been specified.
-
-
-
Method Detail
-
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.
-
-