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
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
Remarks
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
Remarks
Stability: Deprecated
Type union: either IResolvable or CfnEventBusPolicy.IConditionProperty
EventBusName
The name of the event bus associated with the rule.
string? EventBusName { get; }
Property Value
Remarks
If you omit this, the default event bus is used.
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
Remarks
Specify "*" to permit any account to put events to your default event bus.
Stability: Deprecated
Statement
A JSON string that describes the permission policy statement.
object? Statement { get; }
Property Value
Remarks
You can include a Policy parameter in the request instead of using the StatementId , Action , Principal , or Condition parameters.
StatementId
An identifier string for the external account that you are granting permissions to.
string StatementId { get; }
Property Value
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.