Class EventBusPolicy
The policy for an Event Bus.
Inherited Members
Namespace: Amazon.CDK.AWS.Events
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EventBusPolicy : Resource, IResource
Syntax (vb)
Public Class EventBusPolicy
Inherits Resource
Implements IResource
Remarks
Policies define the operations that are allowed on this resource.
You almost never need to define this construct directly.
All AWS resources that support resource policies have a method called
addToResourcePolicy()
, which will automatically create a new resource
policy if one doesn't exist yet, otherwise it will add to the existing
policy.
Prefer to use addToResourcePolicy()
instead.
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;
using Amazon.CDK.AWS.IAM;
EventBus eventBus;
PolicyStatement policyStatement;
var eventBusPolicy = new EventBusPolicy(this, "MyEventBusPolicy", new EventBusPolicyProps {
EventBus = eventBus,
Statement = policyStatement,
StatementId = "statementId"
});
Synopsis
Constructors
EventBusPolicy(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
EventBusPolicy(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
EventBusPolicy(Construct, String, IEventBusPolicyProps) |
Constructors
EventBusPolicy(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected EventBusPolicy(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
EventBusPolicy(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected EventBusPolicy(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
EventBusPolicy(Construct, String, IEventBusPolicyProps)
public EventBusPolicy(Construct scope, string id, IEventBusPolicyProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IEventBusPolicyProps