public static final class CfnConnection.Builder
extends java.lang.Object
CfnConnection
.Modifier and Type | Method and Description |
---|---|
CfnConnection.Builder |
authorizationType(java.lang.String authorizationType)
The type of authorization to use for the connection.
|
CfnConnection.Builder |
authParameters(CfnConnection.AuthParametersProperty authParameters)
A `CreateConnectionAuthRequestParameters` object that contains the authorization parameters to use to authorize with the endpoint.
|
CfnConnection.Builder |
authParameters(IResolvable authParameters)
A `CreateConnectionAuthRequestParameters` object that contains the authorization parameters to use to authorize with the endpoint.
|
CfnConnection |
build() |
static CfnConnection.Builder |
create(Construct scope,
java.lang.String id) |
CfnConnection.Builder |
description(java.lang.String description)
A description for the connection to create.
|
CfnConnection.Builder |
name(java.lang.String name)
The name for the connection to create.
|
public static CfnConnection.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnConnection.ApiKeyAuthParametersProperty.Builder
.public CfnConnection.Builder authorizationType(java.lang.String authorizationType)
OAUTH tokens are refreshed when a 401 or 407 response is returned.
authorizationType
- The type of authorization to use for the connection. This parameter is required.this
public CfnConnection.Builder authParameters(IResolvable authParameters)
authParameters
- A `CreateConnectionAuthRequestParameters` object that contains the authorization parameters to use to authorize with the endpoint. This parameter is required.this
public CfnConnection.Builder authParameters(CfnConnection.AuthParametersProperty authParameters)
authParameters
- A `CreateConnectionAuthRequestParameters` object that contains the authorization parameters to use to authorize with the endpoint. This parameter is required.this
public CfnConnection.Builder description(java.lang.String description)
description
- A description for the connection to create. This parameter is required.this
public CfnConnection.Builder name(java.lang.String name)
name
- The name for the connection to create. This parameter is required.this
public CfnConnection build()