Interface ICfnPolicyStatementProps
Properties for defining a CfnPolicyStatement
.
Namespace: Amazon.CDK.AwsEntityresolution
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnPolicyStatementProps
Syntax (vb)
Public Interface ICfnPolicyStatementProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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" }
};
Synopsis
Properties
Action | The action that the principal can use on the resource. |
Arn | The Amazon Resource Name (ARN) of the resource that will be accessed by the principal. |
Condition | A set of condition keys that you can use in key policies. |
Effect | Determines whether the permissions specified in the policy are to be allowed ( |
Principal | The AWS service or AWS account that can access the resource defined as ARN. |
Statement |
A statement identifier that differentiates the statement from others in the same policy. |
Properties
Action
The action that the principal can use on the resource.
virtual string[] Action { get; }
Property Value
System.
Remarks
For example, entityresolution:GetIdMappingJob
, entityresolution:GetMatchingJob
.
Arn
The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.
string Arn { get; }
Property Value
System.
Remarks
Condition
A set of condition keys that you can use in key policies.
virtual string Condition { get; }
Property Value
System.
Remarks
Effect
Determines whether the permissions specified in the policy are to be allowed ( Allow
) or denied ( Deny
).
virtual string Effect { get; }
Property Value
System.
Remarks
If you set the value of the effect
parameter to Deny
for the AddPolicyStatement
operation, you must also set the value of the effect
parameter in the policy
to Deny
for the PutPolicy
operation.
Principal
The AWS service or AWS account that can access the resource defined as ARN.
virtual string[] Principal { get; }
Property Value
System.
Remarks
StatementId
A statement identifier that differentiates the statement from others in the same policy.
string StatementId { get; }
Property Value
System.