Skip to content
v2.278.0

CfnApprovalTeamProps Struct ​

Properties for defining a CfnApprovalTeam.

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 cfnApprovalTeamProps: mpa.CfnApprovalTeamProps = {
  approvalStrategy: {
    mofN: {
      minApprovalsRequired: 123,
    },
  },
  approvers: [{
    primaryIdentityId: 'primaryIdentityId',
    primaryIdentitySourceArn: 'primaryIdentitySourceArn',

    // the properties below are optional
    approverId: 'approverId',
    primaryIdentityStatus: 'primaryIdentityStatus',
    responseTime: 'responseTime',
  }],
  description: 'description',
  name: 'name',
  policies: [{
    policyArn: 'policyArn',
  }],

  // 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_approval_team_props = mpa.CfnApprovalTeamProps(
    approval_strategy=mpa.CfnApprovalTeam.ApprovalStrategyProperty(
        mof_n=mpa.CfnApprovalTeam.MofNApprovalStrategyProperty(
            min_approvals_required=123
        )
    ),
    approvers=[mpa.CfnApprovalTeam.ApproverProperty(
        primary_identity_id="primaryIdentityId",
        primary_identity_source_arn="primaryIdentitySourceArn",

        # the properties below are optional
        approver_id="approverId",
        primary_identity_status="primaryIdentityStatus",
        response_time="responseTime"
    )],
    description="description",
    name="name",
    policies=[mpa.CfnApprovalTeam.PolicyProperty(
        policy_arn="policyArn"
    )],

    # 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.*;

CfnApprovalTeamProps cfnApprovalTeamProps = CfnApprovalTeamProps.builder()
        .approvalStrategy(ApprovalStrategyProperty.builder()
                .mofN(MofNApprovalStrategyProperty.builder()
                        .minApprovalsRequired(123)
                        .build())
                .build())
        .approvers(List.of(ApproverProperty.builder()
                .primaryIdentityId("primaryIdentityId")
                .primaryIdentitySourceArn("primaryIdentitySourceArn")

                // the properties below are optional
                .approverId("approverId")
                .primaryIdentityStatus("primaryIdentityStatus")
                .responseTime("responseTime")
                .build()))
        .description("description")
        .name("name")
        .policies(List.of(PolicyProperty.builder()
                .policyArn("policyArn")
                .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 cfnApprovalTeamProps = new CfnApprovalTeamProps {
    ApprovalStrategy = new ApprovalStrategyProperty {
        MofN = new MofNApprovalStrategyProperty {
            MinApprovalsRequired = 123
        }
    },
    Approvers = new [] { new ApproverProperty {
        PrimaryIdentityId = "primaryIdentityId",
        PrimaryIdentitySourceArn = "primaryIdentitySourceArn",

        // the properties below are optional
        ApproverId = "approverId",
        PrimaryIdentityStatus = "primaryIdentityStatus",
        ResponseTime = "responseTime"
    } },
    Description = "description",
    Name = "name",
    Policies = new [] { new PolicyProperty {
        PolicyArn = "policyArn"
    } },

    // 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"

cfnApprovalTeamProps := &CfnApprovalTeamProps{
	ApprovalStrategy: &ApprovalStrategyProperty{
		MofN: &MofNApprovalStrategyProperty{
			MinApprovalsRequired: jsii.Number(123),
		},
	},
	Approvers: []interface{}{
		&ApproverProperty{
			PrimaryIdentityId: jsii.String("primaryIdentityId"),
			PrimaryIdentitySourceArn: jsii.String("primaryIdentitySourceArn"),

			// the properties below are optional
			ApproverId: jsii.String("approverId"),
			PrimaryIdentityStatus: jsii.String("primaryIdentityStatus"),
			ResponseTime: jsii.String("responseTime"),
		},
	},
	Description: jsii.String("description"),
	Name: jsii.String("name"),
	Policies: []interface{}{
		&PolicyProperty{
			PolicyArn: jsii.String("policyArn"),
		},
	},

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

Properties ​

approvalStrategyIResolvable | CfnApprovalTeam.ApprovalStrategyPropertyapproval_strategytyping.Union[IResolvable, ApprovalStrategyProperty]approvalStrategyIResolvableApprovalStrategyIResolvableApprovalStrategyinterface{} required #
Contains details for how an approval team grants approval.
approversIResolvable | IResolvable | CfnApprovalTeam.ApproverProperty[]approverstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ApproverProperty]]]approversIResolvableApproversIResolvableApproversinterface{} required #
Contains details for an approver.
descriptionstringdescriptionstrdescriptionStringDescriptionstringDescription*string required #
Description for the team.
namestringnamestrnameStringNamestringName*string required #
Name of the team.
policiesIResolvable | IResolvable | CfnApprovalTeam.PolicyProperty[]policiestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PolicyProperty]]]policiesIResolvablePoliciesIResolvablePoliciesinterface{} required #
Contains details for a policy.

Policies define what operations a team that define the permissions for team resources.

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