class CfnResourcePolicyPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Kinesis.Mixins.CfnResourcePolicyPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awskinesis/mixins#CfnResourcePolicyPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.kinesis.mixins.CfnResourcePolicyPropsMixin |
Python | aws_cdk.mixins_preview.aws_kinesis.mixins.CfnResourcePolicyPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_kinesis » mixins » CfnResourcePolicyPropsMixin |
Implements
IMixin
Extends
Mixin
Attaches a resource-based policy to a data stream or registered consumer.
If you are using an identity other than the root user of the AWS account that owns the resource, the calling identity must have the PutResourcePolicy permissions on the specified Kinesis Data Streams resource and belong to the owner's account in order to use this operation. If you don't have PutResourcePolicy permissions, Amazon Kinesis Data Streams returns a 403 Access Denied error . If you receive a ResourceNotFoundException , check to see if you passed a valid stream or consumer resource.
Request patterns can be one of the following:
- Data stream pattern:
arn:aws.*:kinesis:.*:\d{12}:.*stream/\S+ - Consumer pattern:
^(arn):aws.*:kinesis:.*:\d{12}:.*stream\/[a-zA-Z0-9_.-]+\/consumer\/[a-zA-Z0-9_.-]+:[0-9]+
For more information, see Controlling Access to Amazon Kinesis Data Streams Resources Using IAM .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as kinesis_mixins } from '@aws-cdk/mixins-preview/aws-kinesis';
declare const resourcePolicy: any;
const cfnResourcePolicyPropsMixin = new kinesis_mixins.CfnResourcePolicyPropsMixin({
resourceArn: 'resourceArn',
resourcePolicy: resourcePolicy,
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnResourcePolicyPropsMixin(props: CfnResourcePolicyMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Resource Policy Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Kinesis::ResourcePolicy.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript