Skip to content
v2.277.0

CfnConnectorProps Struct ​

Properties for defining a CfnConnector.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_securityhub as securityhub } from 'aws-cdk-lib';
const cfnConnectorProps: securityhub.CfnConnectorProps = {
  name: 'name',
  provider: {
    azure: {
      awsConfigConnectorArn: 'awsConfigConnectorArn',
      azureRegions: ['azureRegions'],
      scopeConfiguration: {
        scopeType: 'scopeType',

        // the properties below are optional
        scopeValues: ['scopeValues'],
      },
    },
  },

  // the properties below are optional
  description: 'description',
  tags: {
    tagsKey: 'tags',
  },
};
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_securityhub as securityhub

cfn_connector_props = securityhub.CfnConnectorProps(
    name="name",
    provider=securityhub.CfnConnector.ProviderProperty(
        azure=securityhub.CfnConnector.AzureProviderConfigurationProperty(
            aws_config_connector_arn="awsConfigConnectorArn",
            azure_regions=["azureRegions"],
            scope_configuration=securityhub.CfnConnector.AzureScopeConfigurationProperty(
                scope_type="scopeType",

                # the properties below are optional
                scope_values=["scopeValues"]
            )
        )
    ),

    # the properties below are optional
    description="description",
    tags={
        "tags_key": "tags"
    }
)
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.securityhub.*;

CfnConnectorProps cfnConnectorProps = CfnConnectorProps.builder()
        .name("name")
        .provider(ProviderProperty.builder()
                .azure(AzureProviderConfigurationProperty.builder()
                        .awsConfigConnectorArn("awsConfigConnectorArn")
                        .azureRegions(List.of("azureRegions"))
                        .scopeConfiguration(AzureScopeConfigurationProperty.builder()
                                .scopeType("scopeType")

                                // the properties below are optional
                                .scopeValues(List.of("scopeValues"))
                                .build())
                        .build())
                .build())

        // the properties below are optional
        .description("description")
        .tags(Map.of(
                "tagsKey", "tags"))
        .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.SecurityHub;

var cfnConnectorProps = new CfnConnectorProps {
    Name = "name",
    Provider = new ProviderProperty {
        Azure = new AzureProviderConfigurationProperty {
            AwsConfigConnectorArn = "awsConfigConnectorArn",
            AzureRegions = new [] { "azureRegions" },
            ScopeConfiguration = new AzureScopeConfigurationProperty {
                ScopeType = "scopeType",

                // the properties below are optional
                ScopeValues = new [] { "scopeValues" }
            }
        }
    },

    // the properties below are optional
    Description = "description",
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
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"

cfnConnectorProps := &CfnConnectorProps{
	Name: jsii.String("name"),
	Provider: &ProviderProperty{
		Azure: &AzureProviderConfigurationProperty{
			AwsConfigConnectorArn: jsii.String("awsConfigConnectorArn"),
			AzureRegions: []*string{
				jsii.String("azureRegions"),
			},
			ScopeConfiguration: &AzureScopeConfigurationProperty{
				ScopeType: jsii.String("scopeType"),

				// the properties below are optional
				ScopeValues: []*string{
					jsii.String("scopeValues"),
				},
			},
		},
	},

	// the properties below are optional
	Description: jsii.String("description"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the connector.
namestringnamestrnameStringNamestringName*string required #
The name of the connector.
providerIResolvable | CfnConnector.ProviderPropertyprovidertyping.Union[IResolvable, ProviderProperty]providerIResolvableProviderIResolvableProviderinterface{} required #
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #
A key-value pair to associate with a resource.