All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.regioninfo.RegionInfo Maven / Gradle / Ivy

There is a newer version: 2.167.2
Show newest version
package software.amazon.awscdk.regioninfo;

/**
 * Information pertaining to an AWS region.
 * 

* Example: *

*

 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.regioninfo.*;
 * RegionInfo regionInfo = RegionInfo.get("name");
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-24T10:56:41.809Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Jsii(module = software.amazon.awscdk.regioninfo.$Module.class, fqn = "@aws-cdk/region-info.RegionInfo") public class RegionInfo extends software.amazon.jsii.JsiiObject { protected RegionInfo(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected RegionInfo(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } /** * Obtain region info for a given region name. *

* @param name the name of the region (e.g: us-east-1). This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.regioninfo.RegionInfo get(final @org.jetbrains.annotations.NotNull java.lang.String name) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.regioninfo.RegionInfo.class, "get", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.regioninfo.RegionInfo.class), new Object[] { java.util.Objects.requireNonNull(name, "name is required") }); } /** * Retrieves a collection of all fact values for all regions, limited to some partitions. *

* @return a mapping with AWS region codes as the keys, * and the fact in the given region as the value for that key * @param factName the name of the fact to retrieve values for. This parameter is required. * @param partitions list of partitions to retrieve facts for. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static @org.jetbrains.annotations.NotNull java.util.Map limitedRegionMap(final @org.jetbrains.annotations.NotNull java.lang.String factName, final @org.jetbrains.annotations.NotNull java.util.List partitions) { return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.regioninfo.RegionInfo.class, "limitedRegionMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)), new Object[] { java.util.Objects.requireNonNull(factName, "factName is required"), java.util.Objects.requireNonNull(partitions, "partitions is required") })); } /** * Retrieves a collection of all fact values for all regions that fact is defined in. *

* @return a mapping with AWS region codes as the keys, * and the fact in the given region as the value for that key * @param factName the name of the fact to retrieve values for. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static @org.jetbrains.annotations.NotNull java.util.Map regionMap(final @org.jetbrains.annotations.NotNull java.lang.String factName) { return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.regioninfo.RegionInfo.class, "regionMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)), new Object[] { java.util.Objects.requireNonNull(factName, "factName is required") })); } /** * The ARN of the ADOT Lambda layer, for the given layer type, version and architecture. *

* @param type the type of the ADOT lambda layer. This parameter is required. * @param version the layer version. This parameter is required. * @param architecture the Lambda Function architecture (e.g. 'x86_64' or 'arm64'). This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String adotLambdaLayerArn(final @org.jetbrains.annotations.NotNull java.lang.String type, final @org.jetbrains.annotations.NotNull java.lang.String version, final @org.jetbrains.annotations.NotNull java.lang.String architecture) { return software.amazon.jsii.Kernel.call(this, "adotLambdaLayerArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class), new Object[] { java.util.Objects.requireNonNull(type, "type is required"), java.util.Objects.requireNonNull(version, "version is required"), java.util.Objects.requireNonNull(architecture, "architecture is required") }); } /** * The ARN of the AppConfig Lambda Layer, for the given version. *

* @param layerVersion The layer version (e.g. 2.0.181). This parameter is required. * @param architecture The Lambda Function architecture (e.g. 'x86_64' or 'arm64'), defaults to x86_64. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String appConfigLambdaArn(final @org.jetbrains.annotations.NotNull java.lang.String layerVersion, final @org.jetbrains.annotations.Nullable java.lang.String architecture) { return software.amazon.jsii.Kernel.call(this, "appConfigLambdaArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class), new Object[] { java.util.Objects.requireNonNull(layerVersion, "layerVersion is required"), architecture }); } /** * The ARN of the AppConfig Lambda Layer, for the given version. *

* @param layerVersion The layer version (e.g. 2.0.181). This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String appConfigLambdaArn(final @org.jetbrains.annotations.NotNull java.lang.String layerVersion) { return software.amazon.jsii.Kernel.call(this, "appConfigLambdaArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class), new Object[] { java.util.Objects.requireNonNull(layerVersion, "layerVersion is required") }); } /** * The ARN of the CloudWatch Lambda Insights extension, for the given version. *

* @param insightsVersion the version (e.g. 1.0.98.0). This parameter is required. * @param architecture the Lambda Function architecture (e.g. 'x86_64' or 'arm64'). */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String cloudwatchLambdaInsightsArn(final @org.jetbrains.annotations.NotNull java.lang.String insightsVersion, final @org.jetbrains.annotations.Nullable java.lang.String architecture) { return software.amazon.jsii.Kernel.call(this, "cloudwatchLambdaInsightsArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class), new Object[] { java.util.Objects.requireNonNull(insightsVersion, "insightsVersion is required"), architecture }); } /** * The ARN of the CloudWatch Lambda Insights extension, for the given version. *

* @param insightsVersion the version (e.g. 1.0.98.0). This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String cloudwatchLambdaInsightsArn(final @org.jetbrains.annotations.NotNull java.lang.String insightsVersion) { return software.amazon.jsii.Kernel.call(this, "cloudwatchLambdaInsightsArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class), new Object[] { java.util.Objects.requireNonNull(insightsVersion, "insightsVersion is required") }); } /** * The ARN of the Parameters and Secrets Lambda layer for the given lambda architecture. *

* @param version the layer version. This parameter is required. * @param architecture the Lambda Function architecture (e.g. 'x86_64' or 'arm64'). This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String paramsAndSecretsLambdaLayerArn(final @org.jetbrains.annotations.NotNull java.lang.String version, final @org.jetbrains.annotations.NotNull java.lang.String architecture) { return software.amazon.jsii.Kernel.call(this, "paramsAndSecretsLambdaLayerArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class), new Object[] { java.util.Objects.requireNonNull(version, "version is required"), java.util.Objects.requireNonNull(architecture, "architecture is required") }); } /** * (deprecated) The name of the service principal for a given service in this region. *

* @deprecated

    *
  • Use iam.ServicePrincipal.servicePrincipalName() instead.
  • *
* @param service the service name (e.g: s3.amazonaws.com). This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public @org.jetbrains.annotations.Nullable java.lang.String servicePrincipal(final @org.jetbrains.annotations.NotNull java.lang.String service) { return software.amazon.jsii.Kernel.call(this, "servicePrincipal", software.amazon.jsii.NativeType.forClass(java.lang.String.class), new Object[] { java.util.Objects.requireNonNull(service, "service is required") }); } /** * @return the list of names of AWS regions for which there is at least one registered fact. This * may not be an exaustive list of all available AWS regions. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static @org.jetbrains.annotations.NotNull java.util.List getRegions() { return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.regioninfo.RegionInfo.class, "regions", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.regioninfo.RegionInfo.class)))); } /** * Whether the AWS::CDK::Metadata CloudFormation Resource is available in this region or not. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.Boolean getCdkMetadataResourceAvailable() { return software.amazon.jsii.Kernel.get(this, "cdkMetadataResourceAvailable", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); } /** * Whether the given region is an opt-in region. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.Boolean getIsOptInRegion() { return software.amazon.jsii.Kernel.get(this, "isOptInRegion", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getName() { return software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The ID of the AWS account that owns the public ECR repository that contains the AWS App Mesh Envoy Proxy images in a given region. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getAppMeshRepositoryAccount() { return software.amazon.jsii.Kernel.get(this, "appMeshRepositoryAccount", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The ID of the AWS account that owns the public ECR repository containing the AWS Deep Learning Containers images in this region. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getDlcRepositoryAccount() { return software.amazon.jsii.Kernel.get(this, "dlcRepositoryAccount", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The domain name suffix (e.g: amazonaws.com) for this region. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getDomainSuffix() { return software.amazon.jsii.Kernel.get(this, "domainSuffix", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The hosted zone ID used by Route 53 to alias a EBS environment endpoint in this region (e.g: Z2O1EMRO9K5GLX). */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getEbsEnvEndpointHostedZoneId() { return software.amazon.jsii.Kernel.get(this, "ebsEnvEndpointHostedZoneId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The account ID for ELBv2 in this region. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getElbv2Account() { return software.amazon.jsii.Kernel.get(this, "elbv2Account", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The CIDR block used by Kinesis Data Firehose servers. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getFirehoseCidrBlock() { return software.amazon.jsii.Kernel.get(this, "firehoseCidrBlock", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The name of the ARN partition for this region (e.g: aws). */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getPartition() { return software.amazon.jsii.Kernel.get(this, "partition", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The endpoint used by S3 static website hosting in this region (e.g: s3-static-website-us-east-1.amazonaws.com). */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getS3StaticWebsiteEndpoint() { return software.amazon.jsii.Kernel.get(this, "s3StaticWebsiteEndpoint", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The hosted zone ID used by Route 53 to alias a S3 static website in this region (e.g: Z2O1EMRO9K5GLX). */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getS3StaticWebsiteHostedZoneId() { return software.amazon.jsii.Kernel.get(this, "s3StaticWebsiteHostedZoneId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * SAML Sign On URL used by IAM SAML Principals. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getSamlSignOnUrl() { return software.amazon.jsii.Kernel.get(this, "samlSignOnUrl", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The prefix for VPC Endpoint Service names, cn.com.amazonaws.vpce for China regions, com.amazonaws.vpce otherwise. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getVpcEndpointServiceNamePrefix() { return software.amazon.jsii.Kernel.get(this, "vpcEndpointServiceNamePrefix", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy