class Policy
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.SNS.Policy |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssns#Policy |
Java | software.amazon.awscdk.services.sns.Policy |
Python | aws_cdk.aws_sns.Policy |
TypeScript (source) | 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]:FilterOr 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.

.NET
Go
Java
Python
TypeScript (