Skip to content
v2.278.0

GcpConfigurationProperty Struct Added in v2.278.0 ​

Configuration for connecting to Google Cloud.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ssm as ssm } from 'aws-cdk-lib';
const gcpConfigurationProperty: ssm.CfnCloudConnector.GcpConfigurationProperty = {
  serviceAccountEmail: 'serviceAccountEmail',
  workloadIdentityPoolProvider: 'workloadIdentityPoolProvider',

  // the properties below are optional
  organizationId: 'organizationId',
  targets: {
    projects: [{
      projectId: 'projectId',

      // the properties below are optional
      projectDisplayName: 'projectDisplayName',
    }],
  },
};
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_ssm as ssm

gcp_configuration_property = ssm.CfnCloudConnector.GcpConfigurationProperty(
    service_account_email="serviceAccountEmail",
    workload_identity_pool_provider="workloadIdentityPoolProvider",

    # the properties below are optional
    organization_id="organizationId",
    targets=ssm.CfnCloudConnector.GcpConfigurationTargetsProperty(
        projects=[ssm.CfnCloudConnector.GcpProjectProperty(
            project_id="projectId",

            # the properties below are optional
            project_display_name="projectDisplayName"
        )]
    )
)
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.ssm.*;

GcpConfigurationProperty gcpConfigurationProperty = GcpConfigurationProperty.builder()
        .serviceAccountEmail("serviceAccountEmail")
        .workloadIdentityPoolProvider("workloadIdentityPoolProvider")

        // the properties below are optional
        .organizationId("organizationId")
        .targets(GcpConfigurationTargetsProperty.builder()
                .projects(List.of(GcpProjectProperty.builder()
                        .projectId("projectId")

                        // the properties below are optional
                        .projectDisplayName("projectDisplayName")
                        .build()))
                .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.SSM;

var gcpConfigurationProperty = new GcpConfigurationProperty {
    ServiceAccountEmail = "serviceAccountEmail",
    WorkloadIdentityPoolProvider = "workloadIdentityPoolProvider",

    // the properties below are optional
    OrganizationId = "organizationId",
    Targets = new GcpConfigurationTargetsProperty {
        Projects = new [] { new GcpProjectProperty {
            ProjectId = "projectId",

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

gcpConfigurationProperty := &GcpConfigurationProperty{
	ServiceAccountEmail: jsii.String("serviceAccountEmail"),
	WorkloadIdentityPoolProvider: jsii.String("workloadIdentityPoolProvider"),

	// the properties below are optional
	OrganizationId: jsii.String("organizationId"),
	Targets: &GcpConfigurationTargetsProperty{
		Projects: []interface{}{
			&GcpProjectProperty{
				ProjectId: jsii.String("projectId"),

				// the properties below are optional
				ProjectDisplayName: jsii.String("projectDisplayName"),
			},
		},
	},
}

Properties ​

organizationIdoptionalstringorganization_idoptionalstrorganizationIdoptionalStringOrganizationIdoptionalstringOrganizationIdoptional*string #
The GCP organization ID.

Required when Targets is omitted, which targets the entire organization. Cannot be changed after creation.

serviceAccountEmailstringservice_account_emailstrserviceAccountEmailStringServiceAccountEmailstringServiceAccountEmail*string required #
The GCP service account the connector impersonates.

Its project is the connector's management project. Cannot be changed after creation.

targetsoptionalIResolvable | CfnCloudConnector.GcpConfigurationTargetsPropertytargetsoptionaltyping.Union[IResolvable, GcpConfigurationTargetsProperty]targetsoptionalIResolvableTargetsoptionalIResolvableTargetsoptionalinterface{} #
The targets for the cloud connector.

If omitted, the entire organization is targeted.

workloadIdentityPoolProviderstringworkload_identity_pool_providerstrworkloadIdentityPoolProviderStringWorkloadIdentityPoolProviderstringWorkloadIdentityPoolProvider*string required #
The resource name of the workload identity pool provider that trusts the connector's IAM role.