Skip to content
v2.278.0

CfnIntegrationProps Struct ​

Properties for defining a CfnIntegration.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const cfnIntegrationProps: cloudwatch.CfnIntegrationProps = {
  integrationType: 'integrationType',
  name: 'name',

  // the properties below are optional
  credential: {
    apiKeyCredential: {
      apiKeyValue: 'apiKeyValue',
    },
  },
  integrationAttributes: {
    integrationAttributesKey: 'integrationAttributes',
  },
  roleArn: 'roleArn',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
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_cloudwatch as cloudwatch

cfn_integration_props = cloudwatch.CfnIntegrationProps(
    integration_type="integrationType",
    name="name",

    # the properties below are optional
    credential=cloudwatch.CfnIntegration.IntegrationCredentialProperty(
        api_key_credential=cloudwatch.CfnIntegration.ApiKeyCredentialProperty(
            api_key_value="apiKeyValue"
        )
    ),
    integration_attributes={
        "integration_attributes_key": "integrationAttributes"
    },
    role_arn="roleArn",
    tags=[cloudwatch.CfnIntegration.TagsItemsProperty(
        key="key",
        value="value"
    )]
)
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.cloudwatch.*;

CfnIntegrationProps cfnIntegrationProps = CfnIntegrationProps.builder()
        .integrationType("integrationType")
        .name("name")

        // the properties below are optional
        .credential(IntegrationCredentialProperty.builder()
                .apiKeyCredential(ApiKeyCredentialProperty.builder()
                        .apiKeyValue("apiKeyValue")
                        .build())
                .build())
        .integrationAttributes(Map.of(
                "integrationAttributesKey", "integrationAttributes"))
        .roleArn("roleArn")
        .tags(List.of(TagsItemsProperty.builder()
                .key("key")
                .value("value")
                .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.CloudWatch;

var cfnIntegrationProps = new CfnIntegrationProps {
    IntegrationType = "integrationType",
    Name = "name",

    // the properties below are optional
    Credential = new IntegrationCredentialProperty {
        ApiKeyCredential = new ApiKeyCredentialProperty {
            ApiKeyValue = "apiKeyValue"
        }
    },
    IntegrationAttributes = new Dictionary<string, string> {
        { "integrationAttributesKey", "integrationAttributes" }
    },
    RoleArn = "roleArn",
    Tags = new [] { new TagsItemsProperty {
        Key = "key",
        Value = "value"
    } }
};
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"

cfnIntegrationProps := &CfnIntegrationProps{
	IntegrationType: jsii.String("integrationType"),
	Name: jsii.String("name"),

	// the properties below are optional
	Credential: &IntegrationCredentialProperty{
		ApiKeyCredential: &ApiKeyCredentialProperty{
			ApiKeyValue: jsii.String("apiKeyValue"),
		},
	},
	IntegrationAttributes: map[string]*string{
		"integrationAttributesKey": jsii.String("integrationAttributes"),
	},
	RoleArn: jsii.String("roleArn"),
	Tags: []TagsItemsProperty{
		&TagsItemsProperty{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

credentialoptionalIResolvable | CfnIntegration.IntegrationCredentialPropertycredentialoptionaltyping.Union[IResolvable, IntegrationCredentialProperty]credentialoptionalIResolvableCredentialoptionalIResolvableCredentialoptionalinterface{} #
Write-only API-key credential material for the integration.

Stored encrypted and never returned on read.

integrationAttributesoptionalIResolvable | { [key: string]: string }integration_attributesoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]integrationAttributesoptionalIResolvableIntegrationAttributesoptionalIResolvableIntegrationAttributesoptionalinterface{} #
Type-specific configuration attributes (max 50 entries).

EXTERNAL_AGENT requires 'catalogId'. On update, supplied attributes merge into the existing map; omitting a key does not remove it.

integrationTypestringintegration_typestrintegrationTypeStringIntegrationTypestringIntegrationType*string required #
The type of integration.

Immutable after creation.

namestringnamestrnameStringNamestringName*string required #
The customer-supplied name of the integration.

Unique per account.

roleArnoptionalstringrole_arnoptionalstrroleArnoptionalStringRoleArnoptionalstringRoleArnoptional*string #
IAM role ARN the integration assumes.

Required for AWS_INTEGRATION (a valid, service-assumable IAM role ARN). Not used by AWS_CONFIG_SLREC or EXTERNAL_AGENT.

tagsoptionalCfnIntegration.TagsItemsProperty[]tagsoptionaltyping.List[TagsItemsProperty]tagsoptionalList<TagsItemsProperty>TagsoptionalTagsItemsProperty[]Tagsoptional*[]TagsItemsProperty #
Tags associated with the integration.