Class CfnApplication

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.96.0 (build 921e240)", date="2024-04-10T22:22:30.413Z") @Stability(Stable) public class CfnApplication extends CfnResource implements IInspectable, ITaggable
Specifies a new application with given parameters. Requires an existing runtime environment and application definition file.

For information about application definitions, see the AWS Mainframe Modernization 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.m2.*;
 CfnApplication cfnApplication = CfnApplication.Builder.create(this, "MyCfnApplication")
         .definition(DefinitionProperty.builder()
                 .content("content")
                 .s3Location("s3Location")
                 .build())
         .engineType("engineType")
         .name("name")
         // the properties below are optional
         .description("description")
         .kmsKeyId("kmsKeyId")
         .roleArn("roleArn")
         .tags(Map.of(
                 "tagsKey", "tags"))
         .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

    • CfnApplication

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

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

      @Stability(Stable) public CfnApplication(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnApplicationProps 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. 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.
    • getAttrApplicationArn

      @Stability(Stable) @NotNull public String getAttrApplicationArn()
      The Amazon Resource Name (ARN) of the application.
    • getAttrApplicationId

      @Stability(Stable) @NotNull public String getAttrApplicationId()
      The identifier of the application.
    • 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
    • getDefinition

      @Stability(Stable) @NotNull public Object getDefinition()
      The application definition for a particular application.

      You can specify either inline JSON or an Amazon S3 bucket location.

    • setDefinition

      @Stability(Stable) public void setDefinition(@NotNull IResolvable value)
      The application definition for a particular application.

      You can specify either inline JSON or an Amazon S3 bucket location.

    • setDefinition

      @Stability(Stable) public void setDefinition(@NotNull CfnApplication.DefinitionProperty value)
      The application definition for a particular application.

      You can specify either inline JSON or an Amazon S3 bucket location.

    • getEngineType

      @Stability(Stable) @NotNull public String getEngineType()
      The type of the target platform for this application.
    • setEngineType

      @Stability(Stable) public void setEngineType(@NotNull String value)
      The type of the target platform for this application.
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name of the application.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the application.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description of the application.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the application.
    • getKmsKeyId

      @Stability(Stable) @Nullable public String getKmsKeyId()
      The identifier of a customer managed key.
    • setKmsKeyId

      @Stability(Stable) public void setKmsKeyId(@Nullable String value)
      The identifier of a customer managed key.
    • getRoleArn

      @Stability(Stable) @Nullable public String getRoleArn()
      The Amazon Resource Name (ARN) of the role associated with the application.
    • setRoleArn

      @Stability(Stable) public void setRoleArn(@Nullable String value)
      The Amazon Resource Name (ARN) of the role associated with the application.
    • getTagsRaw

      @Stability(Stable) @Nullable public Map<String,String> getTagsRaw()
      An array of key-value pairs to apply to this resource.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable Map<String,String> value)
      An array of key-value pairs to apply to this resource.