GoogleAnalyticsConnectorProfileCredentialsProperty Struct
The connector-specific profile credentials required by Google Analytics.
| 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 googleAnalyticsConnectorProfileCredentialsProperty: appflow.CfnConnectorProfile.GoogleAnalyticsConnectorProfileCredentialsProperty = {
clientId: 'clientId',
clientSecret: 'clientSecret',
// the properties below are optional
accessToken: 'accessToken',
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
google_analytics_connector_profile_credentials_property = appflow.CfnConnectorProfile.GoogleAnalyticsConnectorProfileCredentialsProperty(
client_id="clientId",
client_secret="clientSecret",
# the properties below are optional
access_token="accessToken",
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.*;
GoogleAnalyticsConnectorProfileCredentialsProperty googleAnalyticsConnectorProfileCredentialsProperty = GoogleAnalyticsConnectorProfileCredentialsProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
// the properties below are optional
.accessToken("accessToken")
.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 googleAnalyticsConnectorProfileCredentialsProperty = new GoogleAnalyticsConnectorProfileCredentialsProperty {
ClientId = "clientId",
ClientSecret = "clientSecret",
// the properties below are optional
AccessToken = "accessToken",
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"
googleAnalyticsConnectorProfileCredentialsProperty := &GoogleAnalyticsConnectorProfileCredentialsProperty{
ClientId: jsii.String("clientId"),
ClientSecret: jsii.String("clientSecret"),
// the properties below are optional
AccessToken: jsii.String("accessToken"),
ConnectorOAuthRequest: &ConnectorOAuthRequestProperty{
AuthCode: jsii.String("authCode"),
RedirectUri: jsii.String("redirectUri"),
},
RefreshToken: jsii.String("refreshToken"),
}
Properties
accessTokenoptionalstringaccess_tokenoptionalstraccessTokenoptionalStringAccessTokenoptionalstringAccessTokenoptional*string #The credentials used to access protected Google Analytics resources.
The identifier for the desired client.
clientSecretstringclient_secretstrclientSecretStringClientSecretstringClientSecret*string required #The client secret used by the OAuth client to authenticate to the authorization server.
connectorOAuthRequestoptionalIResolvable | CfnConnectorProfile.connector_o_auth_requestoptionaltyping.Union[IResolvable, ConnectorOAuthRequestProperty]connectorOAuthRequestoptionalIResolvableConnectorOAuthRequestoptionalIResolvableConnectorOAuthRequestoptionalinterface{} #Used by select connectors for which the OAuth workflow is supported, such as Salesforce, Google Analytics, Marketo, Zendesk, and Slack.
refreshTokenoptionalstringrefresh_tokenoptionalstrrefreshTokenoptionalStringRefreshTokenoptionalstringRefreshTokenoptional*string #The credentials used to acquire new access tokens.
This is required only for OAuth2 access tokens, and is not required for OAuth1 access tokens.