Show / Hide Table of Contents

Class CfnConnectionProps

Properties for defining a CfnConnection.

Inheritance
object
CfnConnectionProps
Implements
ICfnConnectionProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Events
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnConnectionProps : ICfnConnectionProps
Syntax (vb)
Public Class CfnConnectionProps Implements ICfnConnectionProps
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-connection.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 cfnConnectionProps = new CfnConnectionProps {
                 AuthorizationType = "authorizationType",
                 AuthParameters = new AuthParametersProperty {
                     ApiKeyAuthParameters = new ApiKeyAuthParametersProperty {
                         ApiKeyName = "apiKeyName",
                         ApiKeyValue = "apiKeyValue"
                     },
                     BasicAuthParameters = new BasicAuthParametersProperty {
                         Password = "password",
                         Username = "username"
                     },
                     ConnectivityParameters = new ConnectivityParametersProperty {
                         ResourceParameters = new ResourceParametersProperty {
                             ResourceConfigurationArn = "resourceConfigurationArn",

                             // the properties below are optional
                             ResourceAssociationArn = "resourceAssociationArn"
                         }
                     },
                     InvocationHttpParameters = new ConnectionHttpParametersProperty {
                         BodyParameters = new [] { new ParameterProperty {
                             Key = "key",
                             Value = "value",

                             // the properties below are optional
                             IsValueSecret = false
                         } },
                         HeaderParameters = new [] { new ParameterProperty {
                             Key = "key",
                             Value = "value",

                             // the properties below are optional
                             IsValueSecret = false
                         } },
                         QueryStringParameters = new [] { new ParameterProperty {
                             Key = "key",
                             Value = "value",

                             // the properties below are optional
                             IsValueSecret = false
                         } }
                     },
                     OAuthParameters = new OAuthParametersProperty {
                         AuthorizationEndpoint = "authorizationEndpoint",
                         ClientParameters = new ClientParametersProperty {
                             ClientId = "clientId",
                             ClientSecret = "clientSecret"
                         },
                         HttpMethod = "httpMethod",

                         // the properties below are optional
                         OAuthHttpParameters = new ConnectionHttpParametersProperty {
                             BodyParameters = new [] { new ParameterProperty {
                                 Key = "key",
                                 Value = "value",

                                 // the properties below are optional
                                 IsValueSecret = false
                             } },
                             HeaderParameters = new [] { new ParameterProperty {
                                 Key = "key",
                                 Value = "value",

                                 // the properties below are optional
                                 IsValueSecret = false
                             } },
                             QueryStringParameters = new [] { new ParameterProperty {
                                 Key = "key",
                                 Value = "value",

                                 // the properties below are optional
                                 IsValueSecret = false
                             } }
                         }
                     }
                 },
                 Description = "description",
                 InvocationConnectivityParameters = new InvocationConnectivityParametersProperty {
                     ResourceParameters = new ResourceParametersProperty {
                         ResourceConfigurationArn = "resourceConfigurationArn",

                         // the properties below are optional
                         ResourceAssociationArn = "resourceAssociationArn"
                     }
                 },
                 KmsKeyIdentifier = "kmsKeyIdentifier",
                 Name = "name"
             };

Synopsis

Constructors

CfnConnectionProps()

Properties for defining a CfnConnection.

Properties

AuthParameters

The authorization parameters to use to authorize with the endpoint.

AuthorizationType

The type of authorization to use for the connection.

Description

A description for the connection to create.

InvocationConnectivityParameters

For connections to private APIs, the parameters to use for invoking the API.

KmsKeyIdentifier

The identifier of the AWS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt this connection.

Name

The name for the connection to create.

Constructors

CfnConnectionProps()

Properties for defining a CfnConnection.

public CfnConnectionProps()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-connection.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 cfnConnectionProps = new CfnConnectionProps {
                 AuthorizationType = "authorizationType",
                 AuthParameters = new AuthParametersProperty {
                     ApiKeyAuthParameters = new ApiKeyAuthParametersProperty {
                         ApiKeyName = "apiKeyName",
                         ApiKeyValue = "apiKeyValue"
                     },
                     BasicAuthParameters = new BasicAuthParametersProperty {
                         Password = "password",
                         Username = "username"
                     },
                     ConnectivityParameters = new ConnectivityParametersProperty {
                         ResourceParameters = new ResourceParametersProperty {
                             ResourceConfigurationArn = "resourceConfigurationArn",

                             // the properties below are optional
                             ResourceAssociationArn = "resourceAssociationArn"
                         }
                     },
                     InvocationHttpParameters = new ConnectionHttpParametersProperty {
                         BodyParameters = new [] { new ParameterProperty {
                             Key = "key",
                             Value = "value",

                             // the properties below are optional
                             IsValueSecret = false
                         } },
                         HeaderParameters = new [] { new ParameterProperty {
                             Key = "key",
                             Value = "value",

                             // the properties below are optional
                             IsValueSecret = false
                         } },
                         QueryStringParameters = new [] { new ParameterProperty {
                             Key = "key",
                             Value = "value",

                             // the properties below are optional
                             IsValueSecret = false
                         } }
                     },
                     OAuthParameters = new OAuthParametersProperty {
                         AuthorizationEndpoint = "authorizationEndpoint",
                         ClientParameters = new ClientParametersProperty {
                             ClientId = "clientId",
                             ClientSecret = "clientSecret"
                         },
                         HttpMethod = "httpMethod",

                         // the properties below are optional
                         OAuthHttpParameters = new ConnectionHttpParametersProperty {
                             BodyParameters = new [] { new ParameterProperty {
                                 Key = "key",
                                 Value = "value",

                                 // the properties below are optional
                                 IsValueSecret = false
                             } },
                             HeaderParameters = new [] { new ParameterProperty {
                                 Key = "key",
                                 Value = "value",

                                 // the properties below are optional
                                 IsValueSecret = false
                             } },
                             QueryStringParameters = new [] { new ParameterProperty {
                                 Key = "key",
                                 Value = "value",

                                 // the properties below are optional
                                 IsValueSecret = false
                             } }
                         }
                     }
                 },
                 Description = "description",
                 InvocationConnectivityParameters = new InvocationConnectivityParametersProperty {
                     ResourceParameters = new ResourceParametersProperty {
                         ResourceConfigurationArn = "resourceConfigurationArn",

                         // the properties below are optional
                         ResourceAssociationArn = "resourceAssociationArn"
                     }
                 },
                 KmsKeyIdentifier = "kmsKeyIdentifier",
                 Name = "name"
             };

Properties

AuthParameters

The authorization parameters to use to authorize with the endpoint.

public object? AuthParameters { get; set; }
Property Value

object

Remarks

You must include only authorization parameters for the AuthorizationType you specify.

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

Type union: either IResolvable or CfnConnection.IAuthParametersProperty

AuthorizationType

The type of authorization to use for the connection.

public string? AuthorizationType { get; set; }
Property Value

string

Remarks
OAUTH tokens are refreshed when a 401 or 407 response is returned.

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

Description

A description for the connection to create.

public string? Description { get; set; }
Property Value

string

Remarks

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

InvocationConnectivityParameters

For connections to private APIs, the parameters to use for invoking the API.

public object? InvocationConnectivityParameters { get; set; }
Property Value

object

Remarks

For more information, see Connecting to private APIs in the Amazon EventBridge User Guide .

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

Type union: either IResolvable or CfnConnection.IInvocationConnectivityParametersProperty

KmsKeyIdentifier

The identifier of the AWS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt this connection.

public string? KmsKeyIdentifier { get; set; }
Property Value

string

Remarks

The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN.

If you do not specify a customer managed key identifier, EventBridge uses an AWS owned key to encrypt the connection.

For more information, see Identify and view keys in the AWS Key Management Service Developer Guide .

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

Name

The name for the connection to create.

public string? Name { get; set; }
Property Value

string

Remarks

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

Implements

ICfnConnectionProps
Back to top Generated by DocFX