@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:37.284Z") public class CfnApplicationOutput extends CfnResource implements IInspectable
Adds an external destination to your Amazon Kinesis Analytics application.
If you want Amazon Kinesis Analytics to deliver data from an in-application stream within your application to an external destination (such as an Amazon Kinesis stream, an Amazon Kinesis Firehose delivery stream, or an Amazon Lambda function), you add the relevant configuration to your application using this operation. You can configure one or more outputs for your application. Each output configuration maps an in-application stream and an external destination.
You can use one of the output configurations to deliver data from your in-application error stream to an external destination so that you can analyze the errors. For more information, see Understanding Application Output (Destination) .
Any configuration update, including adding a streaming source using this operation, results in a new version of the application. You can use the DescribeApplication
operation to find the current application version.
For the limits on the number of application inputs and outputs you can configure, see Limits .
This operation requires permissions to perform the kinesisanalytics:AddApplicationOutput
action.
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.*; CfnApplicationOutput cfnApplicationOutput = CfnApplicationOutput.Builder.create(this, "MyCfnApplicationOutput") .applicationName("applicationName") .output(OutputProperty.builder() .destinationSchema(DestinationSchemaProperty.builder() .recordFormatType("recordFormatType") .build()) // the properties below are optional .kinesisFirehoseOutput(KinesisFirehoseOutputProperty.builder() .resourceArn("resourceArn") .roleArn("roleArn") .build()) .kinesisStreamsOutput(KinesisStreamsOutputProperty.builder() .resourceArn("resourceArn") .roleArn("roleArn") .build()) .lambdaOutput(LambdaOutputProperty.builder() .resourceArn("resourceArn") .roleArn("roleArn") .build()) .name("name") .build()) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnApplicationOutput.Builder
A fluent builder for
CfnApplicationOutput . |
static interface |
CfnApplicationOutput.DestinationSchemaProperty
Describes the data format when records are written to the destination.
|
static interface |
CfnApplicationOutput.KinesisFirehoseOutputProperty
When configuring application output, identifies an Amazon Kinesis Firehose delivery stream as the destination.
|
static interface |
CfnApplicationOutput.KinesisStreamsOutputProperty
When configuring application output, identifies an Amazon Kinesis stream as the destination.
|
static interface |
CfnApplicationOutput.LambdaOutputProperty
When configuring application output, identifies an AWS Lambda function as the destination.
|
static interface |
CfnApplicationOutput.OutputProperty
Describes application output configuration in which you identify an in-application stream and a destination where you want the in-application stream data to be written.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnApplicationOutput(Construct scope,
java.lang.String id,
CfnApplicationOutputProps props)
Create a new `AWS::KinesisAnalytics::ApplicationOutput`.
|
protected |
CfnApplicationOutput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnApplicationOutput(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApplicationName()
Name of the application to which you want to add the output configuration.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getOutput()
An array of objects, each describing one output configuration.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setApplicationName(java.lang.String value)
Name of the application to which you want to add the output configuration.
|
void |
setOutput(CfnApplicationOutput.OutputProperty value)
An array of objects, each describing one output configuration.
|
void |
setOutput(IResolvable value)
An array of objects, each describing one output configuration.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnApplicationOutput(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnApplicationOutput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnApplicationOutput(Construct scope, java.lang.String id, CfnApplicationOutputProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getApplicationName()
public void setApplicationName(java.lang.String value)
public java.lang.Object getOutput()
In the output configuration, you specify the name of an in-application stream, a destination (that is, an Amazon Kinesis stream, an Amazon Kinesis Firehose delivery stream, or an AWS Lambda function), and record the formation to use when writing to the destination.
public void setOutput(IResolvable value)
In the output configuration, you specify the name of an in-application stream, a destination (that is, an Amazon Kinesis stream, an Amazon Kinesis Firehose delivery stream, or an AWS Lambda function), and record the formation to use when writing to the destination.
public void setOutput(CfnApplicationOutput.OutputProperty value)
In the output configuration, you specify the name of an in-application stream, a destination (that is, an Amazon Kinesis stream, an Amazon Kinesis Firehose delivery stream, or an AWS Lambda function), and record the formation to use when writing to the destination.