Class CfnApplication

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

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:08.868Z") @Stability(Stable) public class CfnApplication extends CfnResource implements IInspectable
The AWS::KinesisAnalytics::Application resource creates an Amazon Kinesis Data Analytics application.

For more information, see the Amazon Kinesis Data Analytics Developer 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.kinesisanalytics.*;
 CfnApplication cfnApplication = CfnApplication.Builder.create(this, "MyCfnApplication")
         .inputs(List.of(InputProperty.builder()
                 .inputSchema(InputSchemaProperty.builder()
                         .recordColumns(List.of(RecordColumnProperty.builder()
                                 .name("name")
                                 .sqlType("sqlType")
                                 // the properties below are optional
                                 .mapping("mapping")
                                 .build()))
                         .recordFormat(RecordFormatProperty.builder()
                                 .recordFormatType("recordFormatType")
                                 // the properties below are optional
                                 .mappingParameters(MappingParametersProperty.builder()
                                         .csvMappingParameters(CSVMappingParametersProperty.builder()
                                                 .recordColumnDelimiter("recordColumnDelimiter")
                                                 .recordRowDelimiter("recordRowDelimiter")
                                                 .build())
                                         .jsonMappingParameters(JSONMappingParametersProperty.builder()
                                                 .recordRowPath("recordRowPath")
                                                 .build())
                                         .build())
                                 .build())
                         // the properties below are optional
                         .recordEncoding("recordEncoding")
                         .build())
                 .namePrefix("namePrefix")
                 // the properties below are optional
                 .inputParallelism(InputParallelismProperty.builder()
                         .count(123)
                         .build())
                 .inputProcessingConfiguration(InputProcessingConfigurationProperty.builder()
                         .inputLambdaProcessor(InputLambdaProcessorProperty.builder()
                                 .resourceArn("resourceArn")
                                 .roleArn("roleArn")
                                 .build())
                         .build())
                 .kinesisFirehoseInput(KinesisFirehoseInputProperty.builder()
                         .resourceArn("resourceArn")
                         .roleArn("roleArn")
                         .build())
                 .kinesisStreamsInput(KinesisStreamsInputProperty.builder()
                         .resourceArn("resourceArn")
                         .roleArn("roleArn")
                         .build())
                 .build()))
         // the properties below are optional
         .applicationCode("applicationCode")
         .applicationDescription("applicationDescription")
         .applicationName("applicationName")
         .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.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
    • getCfnProperties

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

      @Stability(Stable) @NotNull public Object getInputs()
      Use this parameter to configure the application input.
    • setInputs

      @Stability(Stable) public void setInputs(@NotNull IResolvable value)
      Use this parameter to configure the application input.
    • setInputs

      @Stability(Stable) public void setInputs(@NotNull List<Object> value)
      Use this parameter to configure the application input.
    • getApplicationCode

      @Stability(Stable) @Nullable public String getApplicationCode()
      One or more SQL statements that read input data, transform it, and generate output.
    • setApplicationCode

      @Stability(Stable) public void setApplicationCode(@Nullable String value)
      One or more SQL statements that read input data, transform it, and generate output.
    • getApplicationDescription

      @Stability(Stable) @Nullable public String getApplicationDescription()
      Summary description of the application.
    • setApplicationDescription

      @Stability(Stable) public void setApplicationDescription(@Nullable String value)
      Summary description of the application.
    • getApplicationName

      @Stability(Stable) @Nullable public String getApplicationName()
      Name of your Amazon Kinesis Analytics application (for example, sample-app ).
    • setApplicationName

      @Stability(Stable) public void setApplicationName(@Nullable String value)
      Name of your Amazon Kinesis Analytics application (for example, sample-app ).