Documentation ¶
Index ¶
- func CfnStreamConsumer_CFN_RESOURCE_TYPE_NAME() *string
- func CfnStreamConsumer_IsCfnElement(x interface{}) *bool
- func CfnStreamConsumer_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnStreamConsumer_IsConstruct(x interface{}) *bool
- func CfnStream_CFN_RESOURCE_TYPE_NAME() *string
- func CfnStream_IsCfnElement(x interface{}) *bool
- func CfnStream_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnStream_IsConstruct(x interface{}) *bool
- func NewCfnStreamConsumer_Override(c CfnStreamConsumer, scope constructs.Construct, id *string, ...)
- func NewCfnStream_Override(c CfnStream, scope constructs.Construct, id *string, props *CfnStreamProps)
- func NewStream_Override(s Stream, scope constructs.Construct, id *string, props *StreamProps)
- func Stream_IsConstruct(x interface{}) *bool
- func Stream_IsResource(construct constructs.IConstruct) *bool
- type CfnStream
- type CfnStreamConsumer
- type CfnStreamConsumerProps
- type CfnStreamProps
- type CfnStream_StreamEncryptionProperty
- type IStream
- type Stream
- type StreamAttributes
- type StreamEncryption
- type StreamProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CfnStreamConsumer_CFN_RESOURCE_TYPE_NAME ¶
func CfnStreamConsumer_CFN_RESOURCE_TYPE_NAME() *string
func CfnStreamConsumer_IsCfnElement ¶
func CfnStreamConsumer_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.
func CfnStreamConsumer_IsCfnResource ¶
func CfnStreamConsumer_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnStreamConsumer_IsConstruct ¶
func CfnStreamConsumer_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func CfnStream_CFN_RESOURCE_TYPE_NAME ¶
func CfnStream_CFN_RESOURCE_TYPE_NAME() *string
func CfnStream_IsCfnElement ¶
func CfnStream_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.
func CfnStream_IsCfnResource ¶
func CfnStream_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnStream_IsConstruct ¶
func CfnStream_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func NewCfnStreamConsumer_Override ¶
func NewCfnStreamConsumer_Override(c CfnStreamConsumer, scope constructs.Construct, id *string, props *CfnStreamConsumerProps)
Create a new `AWS::Kinesis::StreamConsumer`.
func NewCfnStream_Override ¶
func NewCfnStream_Override(c CfnStream, scope constructs.Construct, id *string, props *CfnStreamProps)
Create a new `AWS::Kinesis::Stream`.
func NewStream_Override ¶
func NewStream_Override(s Stream, scope constructs.Construct, id *string, props *StreamProps)
Experimental.
func Stream_IsConstruct ¶
func Stream_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func Stream_IsResource ¶
func Stream_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Experimental.
Types ¶
type CfnStream ¶
type CfnStream interface { awscdk.CfnResource awscdk.IInspectable AttrArn() *string CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string LogicalId() *string Name() *string SetName(val *string) Node() constructs.Node Ref() *string RetentionPeriodHours() *float64 SetRetentionPeriodHours(val *float64) ShardCount() *float64 SetShardCount(val *float64) Stack() awscdk.Stack StreamEncryption() interface{} SetStreamEncryption(val interface{}) Tags() awscdk.TagManager UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::Kinesis::Stream`.
func NewCfnStream ¶
func NewCfnStream(scope constructs.Construct, id *string, props *CfnStreamProps) CfnStream
Create a new `AWS::Kinesis::Stream`.
type CfnStreamConsumer ¶
type CfnStreamConsumer interface { awscdk.CfnResource awscdk.IInspectable AttrConsumerArn() *string AttrConsumerCreationTimestamp() *string AttrConsumerName() *string AttrConsumerStatus() *string AttrStreamArn() *string CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string ConsumerName() *string SetConsumerName(val *string) CreationStack() *[]*string LogicalId() *string Node() constructs.Node Ref() *string Stack() awscdk.Stack StreamArn() *string SetStreamArn(val *string) UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::Kinesis::StreamConsumer`.
func NewCfnStreamConsumer ¶
func NewCfnStreamConsumer(scope constructs.Construct, id *string, props *CfnStreamConsumerProps) CfnStreamConsumer
Create a new `AWS::Kinesis::StreamConsumer`.
type CfnStreamConsumerProps ¶
type CfnStreamConsumerProps struct { // `AWS::Kinesis::StreamConsumer.ConsumerName`. ConsumerName *string `json:"consumerName"` // `AWS::Kinesis::StreamConsumer.StreamARN`. StreamArn *string `json:"streamArn"` }
Properties for defining a `AWS::Kinesis::StreamConsumer`.
type CfnStreamProps ¶
type CfnStreamProps struct { // `AWS::Kinesis::Stream.ShardCount`. ShardCount *float64 `json:"shardCount"` // `AWS::Kinesis::Stream.Name`. Name *string `json:"name"` // `AWS::Kinesis::Stream.RetentionPeriodHours`. RetentionPeriodHours *float64 `json:"retentionPeriodHours"` // `AWS::Kinesis::Stream.StreamEncryption`. StreamEncryption interface{} `json:"streamEncryption"` // `AWS::Kinesis::Stream.Tags`. Tags *[]*awscdk.CfnTag `json:"tags"` }
Properties for defining a `AWS::Kinesis::Stream`.
type IStream ¶
type IStream interface { awscdk.IResource // Grant the indicated permissions on this stream to the provided IAM principal. // Experimental. Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant // Grant read permissions for this stream and its contents to an IAM principal (Role/Group/User). // // If an encryption key is used, permission to ues the key to decrypt the // contents of the stream will also be granted. // Experimental. GrantRead(grantee awsiam.IGrantable) awsiam.Grant // Grants read/write permissions for this stream and its contents to an IAM principal (Role/Group/User). // // If an encryption key is used, permission to use the key for // encrypt/decrypt will also be granted. // Experimental. GrantReadWrite(grantee awsiam.IGrantable) awsiam.Grant // Grant write permissions for this stream and its contents to an IAM principal (Role/Group/User). // // If an encryption key is used, permission to ues the key to encrypt the // contents of the stream will also be granted. // Experimental. GrantWrite(grantee awsiam.IGrantable) awsiam.Grant // Return stream metric based from its metric name. // Experimental. Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The number of records retrieved from the shard, measured over the specified time period. // // Minimum, Maximum, and // Average statistics represent the records in a single GetRecords operation for the stream in the specified time // period. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricGetRecords(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The number of bytes retrieved from the Kinesis stream, measured over the specified time period. // // Minimum, Maximum, // and Average statistics represent the bytes in a single GetRecords operation for the stream in the specified time // period. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricGetRecordsBytes(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The age of the last record in all GetRecords calls made against a Kinesis stream, measured over the specified time period. // // Age is the difference between the current time and when the last record of the GetRecords call was written // to the stream. The Minimum and Maximum statistics can be used to track the progress of Kinesis consumer // applications. A value of zero indicates that the records being read are completely caught up with the stream. // // The metric defaults to maximum over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricGetRecordsIteratorAgeMilliseconds(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The time taken per GetRecords operation, measured over the specified time period. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricGetRecordsLatency(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The number of successful GetRecords operations per stream, measured over the specified time period. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricGetRecordsSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The number of bytes successfully put to the Kinesis stream over the specified time period. // // This metric includes // bytes from PutRecord and PutRecords operations. Minimum, Maximum, and Average statistics represent the bytes in a // single put operation for the stream in the specified time period. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricIncomingBytes(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The number of records successfully put to the Kinesis stream over the specified time period. // // This metric includes // record counts from PutRecord and PutRecords operations. Minimum, Maximum, and Average statistics represent the // records in a single put operation for the stream in the specified time period. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricIncomingRecords(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The number of bytes put to the Kinesis stream using the PutRecord operation over the specified time period. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricPutRecordBytes(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The time taken per PutRecord operation, measured over the specified time period. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricPutRecordLatency(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The number of bytes put to the Kinesis stream using the PutRecords operation over the specified time period. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricPutRecordsBytes(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The number of records rejected due to internal failures in a PutRecords operation per Kinesis data stream, measured over the specified time period. // // Occasional internal failures are to be expected and should be retried. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricPutRecordsFailedRecords(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The time taken per PutRecords operation, measured over the specified time period. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricPutRecordsLatency(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The number of PutRecords operations where at least one record succeeded, per Kinesis stream, measured over the specified time period. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricPutRecordsSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The number of successful records in a PutRecords operation per Kinesis data stream, measured over the specified time period. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricPutRecordsSuccessfulRecords(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The number of records rejected due to throttling in a PutRecords operation per Kinesis data stream, measured over the specified time period. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricPutRecordsThrottledRecords(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The total number of records sent in a PutRecords operation per Kinesis data stream, measured over the specified time period. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricPutRecordsTotalRecords(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The number of successful PutRecord operations per Kinesis stream, measured over the specified time period. // // Average // reflects the percentage of successful writes to a stream. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricPutRecordSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The number of GetRecords calls throttled for the stream over the specified time period. // // The most commonly used // statistic for this metric is Average. // // When the Minimum statistic has a value of 1, all records were throttled for the stream during the specified time // period. // // When the Maximum statistic has a value of 0 (zero), no records were throttled for the stream during the specified // time period. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties // Experimental. MetricReadProvisionedThroughputExceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The number of records rejected due to throttling for the stream over the specified time period. // // This metric // includes throttling from PutRecord and PutRecords operations. // // When the Minimum statistic has a non-zero value, records were being throttled for the stream during the specified // time period. // // When the Maximum statistic has a value of 0 (zero), no records were being throttled for the stream during the // specified time period. // // The metric defaults to average over 5 minutes, it can be changed by passing `statistic` and `period` properties. // Experimental. MetricWriteProvisionedThroughputExceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Optional KMS encryption key associated with this stream. // Experimental. EncryptionKey() awskms.IKey // The ARN of the stream. // Experimental. StreamArn() *string // The name of the stream. // Experimental. StreamName() *string }
A Kinesis Stream. Experimental.
func Stream_FromStreamArn ¶
Import an existing Kinesis Stream provided an ARN. Experimental.
func Stream_FromStreamAttributes ¶
func Stream_FromStreamAttributes(scope constructs.Construct, id *string, attrs *StreamAttributes) IStream
Creates a Stream construct that represents an external stream. Experimental.
type Stream ¶
type Stream interface { awscdk.Resource IStream EncryptionKey() awskms.IKey Env() *awscdk.ResourceEnvironment Node() constructs.Node PhysicalName() *string Stack() awscdk.Stack StreamArn() *string StreamName() *string ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string GetResourceNameAttribute(nameAttr *string) *string Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant GrantRead(grantee awsiam.IGrantable) awsiam.Grant GrantReadWrite(grantee awsiam.IGrantable) awsiam.Grant GrantWrite(grantee awsiam.IGrantable) awsiam.Grant Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricGetRecords(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricGetRecordsBytes(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricGetRecordsIteratorAgeMilliseconds(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricGetRecordsLatency(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricGetRecordsSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricIncomingBytes(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricIncomingRecords(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricPutRecordBytes(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricPutRecordLatency(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricPutRecordsBytes(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricPutRecordsFailedRecords(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricPutRecordsLatency(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricPutRecordsSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricPutRecordsSuccessfulRecords(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricPutRecordsThrottledRecords(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricPutRecordsTotalRecords(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricPutRecordSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricReadProvisionedThroughputExceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric MetricWriteProvisionedThroughputExceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric ToString() *string }
A Kinesis stream.
Can be encrypted with a KMS key. Experimental.
func NewStream ¶
func NewStream(scope constructs.Construct, id *string, props *StreamProps) Stream
Experimental.
type StreamAttributes ¶
type StreamAttributes struct { // The ARN of the stream. // Experimental. StreamArn *string `json:"streamArn"` // The KMS key securing the contents of the stream if encryption is enabled. // Experimental. EncryptionKey awskms.IKey `json:"encryptionKey"` }
A reference to a stream.
The easiest way to instantiate is to call `stream.export()`. Then, the consumer can use `Stream.import(this, ref)` and get a `Stream`. Experimental.
type StreamEncryption ¶
type StreamEncryption string
What kind of server-side encryption to apply to this stream. Experimental.
const ( StreamEncryption_UNENCRYPTED StreamEncryption = "UNENCRYPTED" StreamEncryption_KMS StreamEncryption = "KMS" StreamEncryption_MANAGED StreamEncryption = "MANAGED" )
type StreamProps ¶
type StreamProps struct { // The kind of server-side encryption to apply to this stream. // // If you choose KMS, you can specify a KMS key via `encryptionKey`. If // encryption key is not specified, a key will automatically be created. // Experimental. Encryption StreamEncryption `json:"encryption"` // External KMS key to use for stream encryption. // // The 'encryption' property must be set to "Kms". // Experimental. EncryptionKey awskms.IKey `json:"encryptionKey"` // The number of hours for the data records that are stored in shards to remain accessible. // Experimental. RetentionPeriod awscdk.Duration `json:"retentionPeriod"` // The number of shards for the stream. // Experimental. ShardCount *float64 `json:"shardCount"` // Enforces a particular physical stream name. // Experimental. StreamName *string `json:"streamName"` }
Properties for a Kinesis Stream. Experimental.