OAuthCredentialsProperty
Struct External
The OAuth credentials required for OAuth type authentication.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appflow as appflow } from 'aws-cdk-lib';
const oAuthCredentialsProperty: appflow.CfnConnectorProfile.OAuthCredentialsProperty = {
accessToken: 'accessToken',
clientId: 'clientId',
clientSecret: 'clientSecret',
connectorOAuthRequest: {
authCode: 'authCode',
redirectUri: 'redirectUri',
},
refreshToken: 'refreshToken',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appflow as appflow
o_auth_credentials_property = appflow.CfnConnectorProfile.OAuthCredentialsProperty(
access_token="accessToken",
client_id="clientId",
client_secret="clientSecret",
connector_o_auth_request=appflow.CfnConnectorProfile.ConnectorOAuthRequestProperty(
auth_code="authCode",
redirect_uri="redirectUri"
),
refresh_token="refreshToken"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appflow.*;
OAuthCredentialsProperty oAuthCredentialsProperty = OAuthCredentialsProperty.builder()
.accessToken("accessToken")
.clientId("clientId")
.clientSecret("clientSecret")
.connectorOAuthRequest(ConnectorOAuthRequestProperty.builder()
.authCode("authCode")
.redirectUri("redirectUri")
.build())
.refreshToken("refreshToken")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppFlow;
var oAuthCredentialsProperty = new OAuthCredentialsProperty {
AccessToken = "accessToken",
ClientId = "clientId",
ClientSecret = "clientSecret",
ConnectorOAuthRequest = new ConnectorOAuthRequestProperty {
AuthCode = "authCode",
RedirectUri = "redirectUri"
},
RefreshToken = "refreshToken"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
oAuthCredentialsProperty := &OAuthCredentialsProperty{
AccessToken: jsii.String("accessToken"),
ClientId: jsii.String("clientId"),
ClientSecret: jsii.String("clientSecret"),
ConnectorOAuthRequest: &ConnectorOAuthRequestProperty{
AuthCode: jsii.String("authCode"),
RedirectUri: jsii.String("redirectUri"),
},
RefreshToken: jsii.String("refreshToken"),
}
Properties
accessTokenoptionalstringaccess_tokenoptionalstraccessTokenoptionalStringAccessTokenoptionalstringAccessTokenoptional*string #The access token used to access protected SAPOData resources.
clientIdoptionalstringclient_idoptionalstrclientIdoptionalStringClientIdoptionalstringClientIdoptional*string #The identifier for the desired client.
clientSecretoptionalstringclient_secretoptionalstrclientSecretoptionalStringClientSecretoptionalstringClientSecretoptional*string #The client secret used by the OAuth client to authenticate to the authorization server.
connectorOAuthRequestoptionalIResolvable | CfnConnectorProfile.connector_o_auth_requestoptionaltyping.Union[IResolvable, ConnectorOAuthRequestProperty]connectorOAuthRequestoptionalIResolvableConnectorOAuthRequestoptionalIResolvableConnectorOAuthRequestoptionalinterface{} #refreshTokenoptionalstringrefresh_tokenoptionalstrrefreshTokenoptionalStringRefreshTokenoptionalstringRefreshTokenoptional*string #The refresh token used to refresh expired access token.