Skip to content
v2.278.0

ApiKeyCredentialsProperty Struct ​

The API key credentials required for API key authentication.

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 apiKeyCredentialsProperty: appflow.CfnConnectorProfile.ApiKeyCredentialsProperty = {
  apiKey: 'apiKey',

  // the properties below are optional
  apiSecretKey: 'apiSecretKey',
};
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

api_key_credentials_property = appflow.CfnConnectorProfile.ApiKeyCredentialsProperty(
    api_key="apiKey",

    # the properties below are optional
    api_secret_key="apiSecretKey"
)
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.*;

ApiKeyCredentialsProperty apiKeyCredentialsProperty = ApiKeyCredentialsProperty.builder()
        .apiKey("apiKey")

        // the properties below are optional
        .apiSecretKey("apiSecretKey")
        .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 apiKeyCredentialsProperty = new ApiKeyCredentialsProperty {
    ApiKey = "apiKey",

    // the properties below are optional
    ApiSecretKey = "apiSecretKey"
};
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"

apiKeyCredentialsProperty := &ApiKeyCredentialsProperty{
	ApiKey: jsii.String("apiKey"),

	// the properties below are optional
	ApiSecretKey: jsii.String("apiSecretKey"),
}

Properties ​

apiKeystringapi_keystrapiKeyStringApiKeystringApiKey*string required #
The API key required for API key authentication.
apiSecretKeyoptionalstringapi_secret_keyoptionalstrapiSecretKeyoptionalStringApiSecretKeyoptionalstringApiSecretKeyoptional*string #
The API secret key required for API key authentication.