@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.257Z") @Stability(value=Stable) public interface CfnConnectionProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnConnectionProps.Builder
A builder for
CfnConnectionProps |
static class |
CfnConnectionProps.Jsii$Proxy
An implementation for
CfnConnectionProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnConnectionProps.Builder |
builder() |
String |
getAuthorizationType()
The type of authorization to use for the connection.
|
Object |
getAuthParameters()
A `CreateConnectionAuthRequestParameters` object that contains the authorization parameters to use to authorize with the endpoint.
|
default String |
getDescription()
A description for the connection to create.
|
default String |
getName()
The name for the connection to create.
|
@Stability(value=Stable) @NotNull String getAuthorizationType()
OAUTH tokens are refreshed when a 401 or 407 response is returned.
@Stability(value=Stable) @NotNull Object getAuthParameters()
@Stability(value=Stable) @Nullable default String getDescription()
@Stability(value=Stable) @Nullable default String getName()
@Stability(value=Stable) static CfnConnectionProps.Builder builder()
CfnConnectionProps.Builder of CfnConnectionPropsCopyright © 2022. All rights reserved.