class Policy
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.SNS.Policy |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awssns#Policy |
![]() | software.amazon.awscdk.services.sns.Policy |
![]() | aws_cdk.aws_sns.Policy |
![]() | aws-cdk-lib » aws_sns » Policy |
Extends
Filter
Policy Implementation of FilterOrPolicy.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sns as sns } from 'aws-cdk-lib';
declare const filterOrPolicy: sns.FilterOrPolicy;
const policy = new sns.Policy({
policyDocKey: filterOrPolicy,
});
Initializer
new Policy(policyDoc: { [string]: FilterOrPolicy })
Parameters
- policyDoc
{ [string]:
Filter
Or Policy }
— policy argument to construct.
Policy constructor.
Properties
Name | Type | Description |
---|---|---|
policy | { [string]: Filter } | policy argument to construct. |
type | Filter | Type used in DFS buildFilterPolicyWithMessageBody to determine json value type. |
policyDoc
Type:
{ [string]:
Filter
}
policy argument to construct.
type
Type:
Filter
Type used in DFS buildFilterPolicyWithMessageBody to determine json value type.
Methods
Name | Description |
---|---|
is | Check if instance is Filter type. |
is | Check if instance is Policy type. |
isFilter()
public isFilter(): boolean
Returns
boolean
Check if instance is Filter
type.
isPolicy()
public isPolicy(): boolean
Returns
boolean
Check if instance is Policy
type.