AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

A JSON string which you can use to limit the event bus permissions you are granting to only accounts that fulfill the condition. Currently, the only supported condition is membership in a certain Amazon Web Services organization. The string must contain Type, Key, and Value fields. The Value field specifies the ID of the Amazon Web Services organization. Following is an example value for Condition:

'{"Type" : "StringEquals", "Key": "aws:PrincipalOrgID", "Value": "o-1234567890"}'

Inheritance Hierarchy

System.Object
  Amazon.CloudWatchEvents.Model.Condition

Namespace: Amazon.CloudWatchEvents.Model
Assembly: AWSSDK.CloudWatchEvents.dll
Version: 3.x.y.z

Syntax

C#
public class Condition

The Condition type exposes the following members

Constructors

NameDescription
Public Method Condition()

Properties

NameTypeDescription
Public Property Key System.String

Gets and sets the property Key.

Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.

Public Property Type System.String

Gets and sets the property Type.

Specifies the type of condition. Currently the only supported value is StringEquals.

Public Property Value System.String

Gets and sets the property Value.

Specifies the value for the key. Currently, this must be the ID of the organization.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5