Class CfnEnvironmentTemplate

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:06.480Z") @Stability(Stable) public class CfnEnvironmentTemplate extends CfnResource implements IInspectable, ITaggable
Create an environment template for AWS Proton .

For more information, see Environment Templates in the AWS Proton User Guide .

You can create an environment template in one of the two following ways:

  • Register and publish a standard environment template that instructs AWS Proton to deploy and manage environment infrastructure.
  • Register and publish a customer managed environment template that connects AWS Proton to your existing provisioned infrastructure that you manage. AWS Proton doesn't manage your existing provisioned infrastructure. To create an environment template for customer provisioned and managed infrastructure, include the provisioning parameter and set the value to CUSTOMER_MANAGED . For more information, see Register and publish an environment template in the AWS Proton User Guide .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.proton.*;
 CfnEnvironmentTemplate cfnEnvironmentTemplate = CfnEnvironmentTemplate.Builder.create(this, "MyCfnEnvironmentTemplate")
         .description("description")
         .displayName("displayName")
         .encryptionKey("encryptionKey")
         .name("name")
         .provisioning("provisioning")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnEnvironmentTemplate

      protected CfnEnvironmentTemplate(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnEnvironmentTemplate

      protected CfnEnvironmentTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnEnvironmentTemplate

      @Stability(Stable) public CfnEnvironmentTemplate(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnEnvironmentTemplateProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties.
    • CfnEnvironmentTemplate

      @Stability(Stable) public CfnEnvironmentTemplate(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      Returns the ARN of the environment template.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      A description of the environment template.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      A description of the environment template.
    • getDisplayName

      @Stability(Stable) @Nullable public String getDisplayName()
      The name of the environment template as displayed in the developer interface.
    • setDisplayName

      @Stability(Stable) public void setDisplayName(@Nullable String value)
      The name of the environment template as displayed in the developer interface.
    • getEncryptionKey

      @Stability(Stable) @Nullable public String getEncryptionKey()
      The customer provided encryption key for the environment template.
    • setEncryptionKey

      @Stability(Stable) public void setEncryptionKey(@Nullable String value)
      The customer provided encryption key for the environment template.
    • getName

      @Stability(Stable) @Nullable public String getName()
      The name of the environment template.
    • setName

      @Stability(Stable) public void setName(@Nullable String value)
      The name of the environment template.
    • getProvisioning

      @Stability(Stable) @Nullable public String getProvisioning()
      When included, indicates that the environment template is for customer provisioned and managed infrastructure.
    • setProvisioning

      @Stability(Stable) public void setProvisioning(@Nullable String value)
      When included, indicates that the environment template is for customer provisioned and managed infrastructure.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      An optional list of metadata items that you can associate with the AWS Proton environment template.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      An optional list of metadata items that you can associate with the AWS Proton environment template.