Class CfnEventBusPolicy.ConditionProperty
A JSON string which you can use to limit the event bus permissions you are granting to only accounts that fulfill the condition.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Events
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ConditionProperty : Object, CfnEventBusPolicy.IConditionProperty
Syntax (vb)
Public Class ConditionProperty
Inherits Object
Implements CfnEventBusPolicy.IConditionProperty
Remarks
Currently, the only supported condition is membership in a certain AWS organization. The string must contain Type
, Key
, and Value
fields. The Value
field specifies the ID of the AWS organization. Following is an example value for Condition
:
'{"Type" : "StringEquals", "Key": "aws:PrincipalOrgID", "Value": "o-1234567890"}'
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 conditionProperty = new ConditionProperty {
Key = "key",
Type = "type",
Value = "value"
};
Synopsis
Constructors
ConditionProperty() |
Properties
Key | Specifies the key for the condition. |
Type | Specifies the type of condition. |
Value | Specifies the value for the key. |
Constructors
ConditionProperty()
public ConditionProperty()
Properties
Key
Specifies the key for the condition.
public string Key { get; set; }
Property Value
System.String
Remarks
Currently the only supported key is aws:PrincipalOrgID
.
Type
Specifies the type of condition.
public string Type { get; set; }
Property Value
System.String
Remarks
Currently the only supported value is StringEquals
.
Value
Specifies the value for the key.
public string Value { get; set; }
Property Value
System.String
Remarks
Currently, this must be the ID of the organization.