Class CfnConnection.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnConnection.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnection>
- Enclosing class:
- CfnConnection
@Stability(Stable)
public static final class CfnConnection.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnection>
A fluent builder for
CfnConnection.-
Method Summary
Modifier and TypeMethodDescriptionauthorizationType(String authorizationType) The type of authorization to use for the connection.authParameters(IResolvable authParameters) ACreateConnectionAuthRequestParametersobject that contains the authorization parameters to use to authorize with the endpoint.authParameters(CfnConnection.AuthParametersProperty authParameters) ACreateConnectionAuthRequestParametersobject that contains the authorization parameters to use to authorize with the endpoint.build()static CfnConnection.Builderdescription(String description) A description for the connection to create.The name for the connection to create.
-
Method Details
-
create
- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- Returns:
- a new instance of
CfnConnection.Builder.
-
authorizationType
The type of authorization to use for the connection.OAUTH tokens are refreshed when a 401 or 407 response is returned.
- Parameters:
authorizationType- The type of authorization to use for the connection. This parameter is required.- Returns:
this
-
authParameters
ACreateConnectionAuthRequestParametersobject that contains the authorization parameters to use to authorize with the endpoint.- Parameters:
authParameters- ACreateConnectionAuthRequestParametersobject that contains the authorization parameters to use to authorize with the endpoint. This parameter is required.- Returns:
this
-
authParameters
@Stability(Stable) public CfnConnection.Builder authParameters(CfnConnection.AuthParametersProperty authParameters) ACreateConnectionAuthRequestParametersobject that contains the authorization parameters to use to authorize with the endpoint.- Parameters:
authParameters- ACreateConnectionAuthRequestParametersobject that contains the authorization parameters to use to authorize with the endpoint. This parameter is required.- Returns:
this
-
description
A description for the connection to create.- Parameters:
description- A description for the connection to create. This parameter is required.- Returns:
this
-
name
The name for the connection to create.- Parameters:
name- The name for the connection to create. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnection>- Returns:
- a newly built instance of
CfnConnection.
-