ServiceNowConnectorProfileCredentialsProperty Struct
The connector-specific profile credentials required when using ServiceNow.
| 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 serviceNowConnectorProfileCredentialsProperty: appflow.CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty = {
oAuth2Credentials: {
accessToken: 'accessToken',
clientId: 'clientId',
clientSecret: 'clientSecret',
oAuthRequest: {
authCode: 'authCode',
redirectUri: 'redirectUri',
},
refreshToken: 'refreshToken',
},
password: 'password',
username: 'username',
};
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
service_now_connector_profile_credentials_property = appflow.CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty(
o_auth2_credentials=appflow.CfnConnectorProfile.OAuth2CredentialsProperty(
access_token="accessToken",
client_id="clientId",
client_secret="clientSecret",
o_auth_request=appflow.CfnConnectorProfile.ConnectorOAuthRequestProperty(
auth_code="authCode",
redirect_uri="redirectUri"
),
refresh_token="refreshToken"
),
password="password",
username="username"
)
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.*;
ServiceNowConnectorProfileCredentialsProperty serviceNowConnectorProfileCredentialsProperty = ServiceNowConnectorProfileCredentialsProperty.builder()
.oAuth2Credentials(OAuth2CredentialsProperty.builder()
.accessToken("accessToken")
.clientId("clientId")
.clientSecret("clientSecret")
.oAuthRequest(ConnectorOAuthRequestProperty.builder()
.authCode("authCode")
.redirectUri("redirectUri")
.build())
.refreshToken("refreshToken")
.build())
.password("password")
.username("username")
.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 serviceNowConnectorProfileCredentialsProperty = new ServiceNowConnectorProfileCredentialsProperty {
OAuth2Credentials = new OAuth2CredentialsProperty {
AccessToken = "accessToken",
ClientId = "clientId",
ClientSecret = "clientSecret",
OAuthRequest = new ConnectorOAuthRequestProperty {
AuthCode = "authCode",
RedirectUri = "redirectUri"
},
RefreshToken = "refreshToken"
},
Password = "password",
Username = "username"
};
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"
serviceNowConnectorProfileCredentialsProperty := &ServiceNowConnectorProfileCredentialsProperty{
OAuth2Credentials: &OAuth2CredentialsProperty{
AccessToken: jsii.String("accessToken"),
ClientId: jsii.String("clientId"),
ClientSecret: jsii.String("clientSecret"),
OAuthRequest: &ConnectorOAuthRequestProperty{
AuthCode: jsii.String("authCode"),
RedirectUri: jsii.String("redirectUri"),
},
RefreshToken: jsii.String("refreshToken"),
},
Password: jsii.String("password"),
Username: jsii.String("username"),
}
Properties
oAuth2CredentialsoptionalIResolvable | CfnConnectorProfile.o_auth2_credentialsoptionaltyping.Union[IResolvable, OAuth2CredentialsProperty]oAuth2CredentialsoptionalIResolvableOAuth2CredentialsoptionalIResolvableOAuth2Credentialsoptionalinterface{} #The OAuth 2.0 credentials required to authenticate the user.
passwordoptionalstringpasswordoptionalstrpasswordoptionalStringPasswordoptionalstringPasswordoptional*string #The password that corresponds to the user name.
usernameoptionalstringusernameoptionalstrusernameoptionalStringUsernameoptionalstringUsernameoptional*string #The name of the user.