# GoogleAnalyticsConnectorProfileCredentialsProperty

The connector-specific profile credentials required by Google Analytics.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `accessToken`: string — The credentials used to access protected Google Analytics resources.

- `clientId`: string (required) — The identifier for the desired client.

- `clientSecret`: string (required) — The client secret used by the OAuth client to authenticate to the authorization server.

- `connectorOAuthRequest`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConnectorProfile.ConnectorOAuthRequestProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appflow.CfnConnectorProfile.ConnectorOAuthRequestProperty.html) — Used by select connectors for which the OAuth workflow is supported, such as Salesforce, Google Analytics, Marketo, Zendesk, and Slack.

- `refreshToken`: 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.
