Interface CfnConnectionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnConnectionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:36.951Z")
@Stability(Stable)
public interface CfnConnectionProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnConnection.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.events.*;
CfnConnectionProps cfnConnectionProps = CfnConnectionProps.builder()
.authorizationType("authorizationType")
.authParameters(AuthParametersProperty.builder()
.apiKeyAuthParameters(ApiKeyAuthParametersProperty.builder()
.apiKeyName("apiKeyName")
.apiKeyValue("apiKeyValue")
.build())
.basicAuthParameters(BasicAuthParametersProperty.builder()
.password("password")
.username("username")
.build())
.invocationHttpParameters(ConnectionHttpParametersProperty.builder()
.bodyParameters(List.of(ParameterProperty.builder()
.key("key")
.value("value")
// the properties below are optional
.isValueSecret(false)
.build()))
.headerParameters(List.of(ParameterProperty.builder()
.key("key")
.value("value")
// the properties below are optional
.isValueSecret(false)
.build()))
.queryStringParameters(List.of(ParameterProperty.builder()
.key("key")
.value("value")
// the properties below are optional
.isValueSecret(false)
.build()))
.build())
.oAuthParameters(OAuthParametersProperty.builder()
.authorizationEndpoint("authorizationEndpoint")
.clientParameters(ClientParametersProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
.build())
.httpMethod("httpMethod")
// the properties below are optional
.oAuthHttpParameters(ConnectionHttpParametersProperty.builder()
.bodyParameters(List.of(ParameterProperty.builder()
.key("key")
.value("value")
// the properties below are optional
.isValueSecret(false)
.build()))
.headerParameters(List.of(ParameterProperty.builder()
.key("key")
.value("value")
// the properties below are optional
.isValueSecret(false)
.build()))
.queryStringParameters(List.of(ParameterProperty.builder()
.key("key")
.value("value")
// the properties below are optional
.isValueSecret(false)
.build()))
.build())
.build())
.build())
// the properties below are optional
.description("description")
.name("name")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnConnectionPropsstatic final classAn implementation forCfnConnectionProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnConnectionProps.Builderbuilder()The type of authorization to use for the connection.ACreateConnectionAuthRequestParametersobject that contains the authorization parameters to use to authorize with the endpoint.default StringA description for the connection to create.default StringgetName()The name for the connection to create.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAuthorizationType
The type of authorization to use for the connection.OAUTH tokens are refreshed when a 401 or 407 response is returned.
-
getAuthParameters
ACreateConnectionAuthRequestParametersobject that contains the authorization parameters to use to authorize with the endpoint. -
getDescription
A description for the connection to create. -
getName
The name for the connection to create. -
builder
- Returns:
- a
CfnConnectionProps.BuilderofCfnConnectionProps
-