CfnPolicyStatementProps Struct
Properties for defining a CfnPolicyStatement.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_entityresolution as entityresolution } from 'aws-cdk-lib';
const cfnPolicyStatementProps: entityresolution.CfnPolicyStatementProps = {
arn: 'arn',
statementId: 'statementId',
// the properties below are optional
action: ['action'],
condition: 'condition',
effect: 'effect',
principal: ['principal'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_entityresolution as entityresolution
cfn_policy_statement_props = entityresolution.CfnPolicyStatementProps(
arn="arn",
statement_id="statementId",
# the properties below are optional
action=["action"],
condition="condition",
effect="effect",
principal=["principal"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.entityresolution.*;
CfnPolicyStatementProps cfnPolicyStatementProps = CfnPolicyStatementProps.builder()
.arn("arn")
.statementId("statementId")
// the properties below are optional
.action(List.of("action"))
.condition("condition")
.effect("effect")
.principal(List.of("principal"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EntityResolution;
var cfnPolicyStatementProps = new CfnPolicyStatementProps {
Arn = "arn",
StatementId = "statementId",
// the properties below are optional
Action = new [] { "action" },
Condition = "condition",
Effect = "effect",
Principal = new [] { "principal" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnPolicyStatementProps := &CfnPolicyStatementProps{
Arn: jsii.String("arn"),
StatementId: jsii.String("statementId"),
// the properties below are optional
Action: []*string{
jsii.String("action"),
},
Condition: jsii.String("condition"),
Effect: jsii.String("effect"),
Principal: []*string{
jsii.String("principal"),
},
}
Properties
actionoptionalstring[]actionoptionaltyping.List[str]actionoptionalList<String>Actionoptionalstring[]Actionoptional*[]*string #The action that the principal can use on the resource.
For example, entityresolution:GetIdMappingJob , entityresolution:GetMatchingJob .
The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.
conditionoptionalstringconditionoptionalstrconditionoptionalStringConditionoptionalstringConditionoptional*string #A set of condition keys that you can use in key policies.
effectoptionalstringeffectoptionalstreffectoptionalStringEffectoptionalstringEffectoptional*string #Determines whether the permissions specified in the policy are to be allowed ( `Allow` ) or denied ( `Deny` ).
If you set the value of the
effectparameter toDenyfor theAddPolicyStatementoperation, you must also set the value of theeffectparameter in thepolicytoDenyfor thePutPolicyoperation.
principaloptionalstring[]principaloptionaltyping.List[str]principaloptionalList<String>Principaloptionalstring[]Principaloptional*[]*string #The AWS service or AWS account that can access the resource defined as ARN.
A statement identifier that differentiates the statement from others in the same policy.