Interface IAwsApiProps
Properties for an AwsApi target.
Inherited Members
Namespace: Amazon.CDK.AWS.Events.Targets
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IAwsApiProps : IAwsApiInput
Syntax (vb)
Public Interface IAwsApiProps
Inherits IAwsApiInput
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.Events.Targets;
using Amazon.CDK.AWS.IAM;
var parameters;
PolicyStatement policyStatement;
var awsApiProps = new AwsApiProps {
Action = "action",
Service = "service",
// the properties below are optional
ApiVersion = "apiVersion",
CatchErrorPattern = "catchErrorPattern",
Parameters = parameters,
PolicyStatement = policyStatement
};
Synopsis
Properties
PolicyStatement | The IAM policy statement to allow the API call. |
Properties
PolicyStatement
The IAM policy statement to allow the API call.
virtual PolicyStatement PolicyStatement { get; }
Property Value
Remarks
Use only if resource restriction is needed.
Default: - extract the permission from the API call