Show / Hide Table of Contents

Interface ICfnEventBusPolicyProps

Properties for defining a CfnEventBusPolicy.

Namespace: Amazon.CDK.AWS.Events
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnEventBusPolicyProps
Syntax (vb)
Public Interface ICfnEventBusPolicyProps
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbuspolicy.html

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;

             var statement;

             var cfnEventBusPolicyProps = new CfnEventBusPolicyProps {
                 StatementId = "statementId",

                 // the properties below are optional
                 Action = "action",
                 Condition = new ConditionProperty {
                     Key = "key",
                     Type = "type",
                     Value = "value"
                 },
                 EventBusName = "eventBusName",
                 Principal = "principal",
                 Statement = statement
             };

Synopsis

Properties

Action

(deprecated) The action that you are enabling the other account to perform.

Condition

(deprecated) This parameter enables you to limit the permission to accounts that fulfill a certain condition, such as being a member of a certain AWS organization.

EventBusName

The name of the event bus associated with the rule.

Principal

(deprecated) The 12-digit AWS account ID that you are permitting to put events to your default event bus.

Statement

A JSON string that describes the permission policy statement.

StatementId

An identifier string for the external account that you are granting permissions to.

Properties

Action

(deprecated) The action that you are enabling the other account to perform.

[Obsolete("this property has been deprecated")]
string? Action { get; }
Property Value

string

Remarks

Stability: Deprecated

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbuspolicy.html#cfn-events-eventbuspolicy-action

Condition

(deprecated) This parameter enables you to limit the permission to accounts that fulfill a certain condition, such as being a member of a certain AWS organization.

[Obsolete("this property has been deprecated")]
object? Condition { get; }
Property Value

object

Remarks

Stability: Deprecated

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbuspolicy.html#cfn-events-eventbuspolicy-condition

Type union: either IResolvable or CfnEventBusPolicy.IConditionProperty

EventBusName

The name of the event bus associated with the rule.

string? EventBusName { get; }
Property Value

string

Remarks

If you omit this, the default event bus is used.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbuspolicy.html#cfn-events-eventbuspolicy-eventbusname

Principal

(deprecated) The 12-digit AWS account ID that you are permitting to put events to your default event bus.

[Obsolete("this property has been deprecated")]
string? Principal { get; }
Property Value

string

Remarks

Specify "*" to permit any account to put events to your default event bus.

Stability: Deprecated

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbuspolicy.html#cfn-events-eventbuspolicy-principal

Statement

A JSON string that describes the permission policy statement.

object? Statement { get; }
Property Value

object

Remarks

You can include a Policy parameter in the request instead of using the StatementId , Action , Principal , or Condition parameters.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbuspolicy.html#cfn-events-eventbuspolicy-statement

StatementId

An identifier string for the external account that you are granting permissions to.

string StatementId { get; }
Property Value

string

Remarks

If you later want to revoke the permission for this external account, specify this StatementId when you run RemovePermission .

Each <code>StatementId</code> must be unique.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbuspolicy.html#cfn-events-eventbuspolicy-statementid

Back to top Generated by DocFX