Interface CfnConnection.AuthParametersProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnConnection.AuthParametersProperty.Jsii$Proxy
- Enclosing class:
CfnConnection
@Stability(Stable)
public static interface CfnConnection.AuthParametersProperty
extends software.amazon.jsii.JsiiSerializable
Tthe authorization parameters to use for the connection.
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.*;
AuthParametersProperty authParametersProperty = AuthParametersProperty.builder()
.apiKeyAuthParameters(ApiKeyAuthParametersProperty.builder()
.apiKeyName("apiKeyName")
.apiKeyValue("apiKeyValue")
.build())
.basicAuthParameters(BasicAuthParametersProperty.builder()
.password("password")
.username("username")
.build())
.connectivityParameters(ConnectivityParametersProperty.builder()
.resourceParameters(ResourceParametersProperty.builder()
.resourceConfigurationArn("resourceConfigurationArn")
// the properties below are optional
.resourceAssociationArn("resourceAssociationArn")
.build())
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnConnection.AuthParametersPropertystatic final classAn implementation forCfnConnection.AuthParametersProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe API Key parameters to use for authorization.default ObjectThe authorization parameters for Basic authorization.default ObjectFor private OAuth authentication endpoints.default ObjectAdditional parameters for the connection that are passed through with every invocation to the HTTP endpoint.default ObjectThe OAuth parameters to use for authorization.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApiKeyAuthParameters
The API Key parameters to use for authorization.Returns union: either
IResolvableorCfnConnection.ApiKeyAuthParametersProperty- See Also:
-
getBasicAuthParameters
The authorization parameters for Basic authorization.Returns union: either
IResolvableorCfnConnection.BasicAuthParametersProperty- See Also:
-
getConnectivityParameters
For private OAuth authentication endpoints. The parameters EventBridge uses to authenticate against the endpoint.For more information, see Authorization methods for connections in the Amazon EventBridge User Guide .
Returns union: either
IResolvableorCfnConnection.ConnectivityParametersProperty- See Also:
-
getInvocationHttpParameters
Additional parameters for the connection that are passed through with every invocation to the HTTP endpoint.Returns union: either
IResolvableorCfnConnection.ConnectionHttpParametersProperty- See Also:
-
getOAuthParameters
The OAuth parameters to use for authorization.Returns union: either
IResolvableorCfnConnection.OAuthParametersProperty- See Also:
-
builder
-