Class CfnConnectionProps
Properties for defining a CfnConnection.
Implements
Inherited Members
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 |
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
Remarks
You must include only authorization parameters for the AuthorizationType you specify.
Type union: either IResolvable or CfnConnection.IAuthParametersProperty
AuthorizationType
The type of authorization to use for the connection.
public string? AuthorizationType { get; set; }
Property Value
Remarks
OAUTH tokens are refreshed when a 401 or 407 response is returned.
Description
A description for the connection to create.
public string? Description { get; set; }
Property Value
Remarks
InvocationConnectivityParameters
For connections to private APIs, the parameters to use for invoking the API.
public object? InvocationConnectivityParameters { get; set; }
Property Value
Remarks
For more information, see Connecting to private APIs in the Amazon EventBridge User Guide .
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
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 .
Name
The name for the connection to create.
public string? Name { get; set; }