Show / Hide Table of Contents

Class EventBusPolicy

The policy for an Event Bus.

Inheritance
object
Resource
EventBusPolicy
Implements
IResource
IConstruct
IDependable
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
Namespace: Amazon.CDK.AWS.Events
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EventBusPolicy : Resource, IResource, IConstruct, IDependable
Syntax (vb)
Public Class EventBusPolicy Inherits Resource Implements IResource, IConstruct, IDependable
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(Construct, string, IEventBusPolicyProps)

The policy for an Event Bus.

Properties

PROPERTY_INJECTION_ID

Uniquely identifies this class.

Constructors

EventBusPolicy(Construct, string, IEventBusPolicyProps)

The policy for an Event Bus.

public EventBusPolicy(Construct scope, string id, IEventBusPolicyProps props)
Parameters
scope Construct
id string
props IEventBusPolicyProps
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"
             });

Properties

PROPERTY_INJECTION_ID

Uniquely identifies this class.

public static string PROPERTY_INJECTION_ID { get; }
Property Value

string

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

Implements

IResource
Constructs.IConstruct
Constructs.IDependable
Back to top Generated by DocFX