SlackConnectorProfileCredentialsProperty Struct
The connector-specific profile credentials required when using Slack.
| 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 slackConnectorProfileCredentialsProperty: appflow.CfnConnectorProfile.SlackConnectorProfileCredentialsProperty = {
clientId: 'clientId',
clientSecret: 'clientSecret',
// the properties below are optional
accessToken: 'accessToken',
connectorOAuthRequest: {
authCode: 'authCode',
redirectUri: 'redirectUri',
},
};
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
slack_connector_profile_credentials_property = appflow.CfnConnectorProfile.SlackConnectorProfileCredentialsProperty(
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"
)
)
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.*;
SlackConnectorProfileCredentialsProperty slackConnectorProfileCredentialsProperty = SlackConnectorProfileCredentialsProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
// the properties below are optional
.accessToken("accessToken")
.connectorOAuthRequest(ConnectorOAuthRequestProperty.builder()
.authCode("authCode")
.redirectUri("redirectUri")
.build())
.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 slackConnectorProfileCredentialsProperty = new SlackConnectorProfileCredentialsProperty {
ClientId = "clientId",
ClientSecret = "clientSecret",
// the properties below are optional
AccessToken = "accessToken",
ConnectorOAuthRequest = new ConnectorOAuthRequestProperty {
AuthCode = "authCode",
RedirectUri = "redirectUri"
}
};
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"
slackConnectorProfileCredentialsProperty := &SlackConnectorProfileCredentialsProperty{
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"),
},
}
Properties
accessTokenoptionalstringaccess_tokenoptionalstraccessTokenoptionalStringAccessTokenoptionalstringAccessTokenoptional*string #The credentials used to access protected Slack resources.
The identifier for the 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.