Show / Hide Table of Contents

Interface ICfnConnectionProps

Properties for defining a CfnConnection.

Namespace: Amazon.CDK.AWS.Events
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnConnectionProps
Syntax (vb)
Public Interface 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

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.

Properties

AuthParameters

The authorization parameters to use to authorize with the endpoint.

object? AuthParameters { get; }
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.

string? AuthorizationType { get; }
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.

string? Description { get; }
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.

object? InvocationConnectivityParameters { get; }
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.

string? KmsKeyIdentifier { get; }
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.

string? Name { get; }
Property Value

string

Remarks

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

Back to top Generated by DocFX