Skip to content
v2.278.0

CfnIdentitySourceProps Struct ​

Properties for defining a CfnIdentitySource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mpa as mpa } from 'aws-cdk-lib';
const cfnIdentitySourceProps: mpa.CfnIdentitySourceProps = {
  identitySourceParameters: {
    iamIdentityCenter: {
      instanceArn: 'instanceArn',
      region: 'region',

      // the properties below are optional
      approvalPortalUrl: 'approvalPortalUrl',
    },
  },

  // the properties below are optional
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mpa as mpa

cfn_identity_source_props = mpa.CfnIdentitySourceProps(
    identity_source_parameters=mpa.CfnIdentitySource.IdentitySourceParametersProperty(
        iam_identity_center=mpa.CfnIdentitySource.IamIdentityCenterProperty(
            instance_arn="instanceArn",
            region="region",

            # the properties below are optional
            approval_portal_url="approvalPortalUrl"
        )
    ),

    # the properties below are optional
    tags=[CfnTag(
        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.mpa.*;

CfnIdentitySourceProps cfnIdentitySourceProps = CfnIdentitySourceProps.builder()
        .identitySourceParameters(IdentitySourceParametersProperty.builder()
                .iamIdentityCenter(IamIdentityCenterProperty.builder()
                        .instanceArn("instanceArn")
                        .region("region")

                        // the properties below are optional
                        .approvalPortalUrl("approvalPortalUrl")
                        .build())
                .build())

        // the properties below are optional
        .tags(List.of(CfnTag.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.MPA;

var cfnIdentitySourceProps = new CfnIdentitySourceProps {
    IdentitySourceParameters = new IdentitySourceParametersProperty {
        IamIdentityCenter = new IamIdentityCenterProperty {
            InstanceArn = "instanceArn",
            Region = "region",

            // the properties below are optional
            ApprovalPortalUrl = "approvalPortalUrl"
        }
    },

    // the properties below are optional
    Tags = new [] { new CfnTag {
        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"

cfnIdentitySourceProps := &CfnIdentitySourceProps{
	IdentitySourceParameters: &IdentitySourceParametersProperty{
		IamIdentityCenter: &IamIdentityCenterProperty{
			InstanceArn: jsii.String("instanceArn"),
			Region: jsii.String("region"),

			// the properties below are optional
			ApprovalPortalUrl: jsii.String("approvalPortalUrl"),
		},
	},

	// the properties below are optional
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

identitySourceParametersIResolvable | CfnIdentitySource.IdentitySourceParametersPropertyidentity_source_parameterstyping.Union[IResolvable, IdentitySourceParametersProperty]identitySourceParametersIResolvableIdentitySourceParametersIResolvableIdentitySourceParametersinterface{} required #
A `IdentitySourceParameters` object.

Contains details for the resource that provides identities to the identity source. For example, an IAM Identity Center instance.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Tags that you have added to the specified resource.