CfnConnectorV2Props Struct
Properties for defining a CfnConnectorV2.
| 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_securityhub as securityhub } from 'aws-cdk-lib';
const cfnConnectorV2Props: securityhub.CfnConnectorV2Props = {
name: 'name',
provider: {
azure: {
awsConfigConnectorArn: 'awsConfigConnectorArn',
azureRegions: ['azureRegions'],
scopeConfiguration: {
scopeType: 'scopeType',
// the properties below are optional
scopeValues: ['scopeValues'],
},
},
jiraCloud: {
projectKey: 'projectKey',
},
serviceNow: {
instanceName: 'instanceName',
secretArn: 'secretArn',
},
},
// the properties below are optional
description: 'description',
kmsKeyArn: 'kmsKeyArn',
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_v2_props = securityhub.CfnConnectorV2Props(
name="name",
provider=securityhub.CfnConnectorV2.ProviderProperty(
azure=securityhub.CfnConnectorV2.AzureProviderConfigurationProperty(
aws_config_connector_arn="awsConfigConnectorArn",
azure_regions=["azureRegions"],
scope_configuration=securityhub.CfnConnectorV2.AzureScopeConfigurationProperty(
scope_type="scopeType",
# the properties below are optional
scope_values=["scopeValues"]
)
),
jira_cloud=securityhub.CfnConnectorV2.JiraCloudProviderConfigurationProperty(
project_key="projectKey"
),
service_now=securityhub.CfnConnectorV2.ServiceNowProviderConfigurationProperty(
instance_name="instanceName",
secret_arn="secretArn"
)
),
# the properties below are optional
description="description",
kms_key_arn="kmsKeyArn",
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.*;
CfnConnectorV2Props cfnConnectorV2Props = CfnConnectorV2Props.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())
.jiraCloud(JiraCloudProviderConfigurationProperty.builder()
.projectKey("projectKey")
.build())
.serviceNow(ServiceNowProviderConfigurationProperty.builder()
.instanceName("instanceName")
.secretArn("secretArn")
.build())
.build())
// the properties below are optional
.description("description")
.kmsKeyArn("kmsKeyArn")
.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 cfnConnectorV2Props = new CfnConnectorV2Props {
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" }
}
},
JiraCloud = new JiraCloudProviderConfigurationProperty {
ProjectKey = "projectKey"
},
ServiceNow = new ServiceNowProviderConfigurationProperty {
InstanceName = "instanceName",
SecretArn = "secretArn"
}
},
// the properties below are optional
Description = "description",
KmsKeyArn = "kmsKeyArn",
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"
cfnConnectorV2Props := &CfnConnectorV2Props{
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"),
},
},
},
JiraCloud: &JiraCloudProviderConfigurationProperty{
ProjectKey: jsii.String("projectKey"),
},
ServiceNow: &ServiceNowProviderConfigurationProperty{
InstanceName: jsii.String("instanceName"),
SecretArn: jsii.String("secretArn"),
},
},
// the properties below are optional
Description: jsii.String("description"),
KmsKeyArn: jsii.String("kmsKeyArn"),
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The description of the connectorV2.
kmsKeyArnoptionalstringkms_key_arnoptionalstrkmsKeyArnoptionalStringKmsKeyArnoptionalstringKmsKeyArnoptional*string #The Amazon Resource Name (ARN) of KMS key used to encrypt secrets for the connectorV2.
The unique name of the connectorV2.
providerIResolvable | CfnConnectorV2.ProviderPropertyprovidertyping.Union[IResolvable, ProviderProperty]providerIResolvableProviderIResolvableProviderinterface{} required #The third-party provider detail for a service configuration.
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #The tags to add to the connectorV2 when you create.