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",
// the properties below are optional
AuthParameters = new AuthParametersProperty {
ApiKeyAuthParameters = new ApiKeyAuthParametersProperty {
ApiKeyName = "apiKeyName",
ApiKeyValue = "apiKeyValue"
},
BasicAuthParameters = new BasicAuthParametersProperty {
Password = "password",
Username = "username"
},
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",
Name = "name"
};
Synopsis
Properties
AuthorizationType | The type of authorization to use for the connection. |
AuthParameters | A |
Description | A description for the connection to create. |
Name | The name for the connection to create. |
Properties
AuthorizationType
The type of authorization to use for the connection.
string AuthorizationType { get; }
Property Value
System.String
Remarks
OAUTH tokens are refreshed when a 401 or 407 response is returned.
AuthParameters
A CreateConnectionAuthRequestParameters
object that contains the authorization parameters to use to authorize with the endpoint.
virtual object AuthParameters { get; }
Property Value
System.Object
Remarks
Description
A description for the connection to create.
virtual string Description { get; }
Property Value
System.String
Remarks
Name
The name for the connection to create.
virtual string Name { get; }
Property Value
System.String