CfnApprovalTeamPropsMixin

class aws_cdk.mixins_preview.aws_mpa.mixins.CfnApprovalTeamPropsMixin(props, *, strategy=None)

Bases: Mixin

Creates a new approval team.

For more information, see Approval team in the Multi-party approval User Guide .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mpa-approvalteam.html

CloudformationResource:

AWS::MPA::ApprovalTeam

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_mpa import mixins as mpa_mixins

cfn_approval_team_props_mixin = mpa_mixins.CfnApprovalTeamPropsMixin(mpa_mixins.CfnApprovalTeamMixinProps(
    approval_strategy=mpa_mixins.CfnApprovalTeamPropsMixin.ApprovalStrategyProperty(
        mof_n=mpa_mixins.CfnApprovalTeamPropsMixin.MofNApprovalStrategyProperty(
            min_approvals_required=123
        )
    ),
    approvers=[mpa_mixins.CfnApprovalTeamPropsMixin.ApproverProperty(
        approver_id="approverId",
        primary_identity_id="primaryIdentityId",
        primary_identity_source_arn="primaryIdentitySourceArn",
        primary_identity_status="primaryIdentityStatus",
        response_time="responseTime"
    )],
    description="description",
    name="name",
    policies=[mpa_mixins.CfnApprovalTeamPropsMixin.PolicyProperty(
        policy_arn="policyArn"
    )],
    tags=[CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::MPA::ApprovalTeam.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['approvalStrategy', 'approvers', 'description', 'name', 'policies', 'tags']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

ApprovalStrategyProperty

class CfnApprovalTeamPropsMixin.ApprovalStrategyProperty(*, mof_n=None)

Bases: object

Strategy for how an approval team grants approval.

Parameters:

mof_n (Union[IResolvable, MofNApprovalStrategyProperty, Dict[str, Any], None]) – Minimum number of approvals (M) required for a total number of approvers (N).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mpa-approvalteam-approvalstrategy.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mpa import mixins as mpa_mixins

approval_strategy_property = mpa_mixins.CfnApprovalTeamPropsMixin.ApprovalStrategyProperty(
    mof_n=mpa_mixins.CfnApprovalTeamPropsMixin.MofNApprovalStrategyProperty(
        min_approvals_required=123
    )
)

Attributes

mof_n

Minimum number of approvals (M) required for a total number of approvers (N).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mpa-approvalteam-approvalstrategy.html#cfn-mpa-approvalteam-approvalstrategy-mofn

ApproverProperty

class CfnApprovalTeamPropsMixin.ApproverProperty(*, approver_id=None, primary_identity_id=None, primary_identity_source_arn=None, primary_identity_status=None, response_time=None)

Bases: object

Contains details for an approver.

Parameters:
  • approver_id (Optional[str]) – ID for the approver.

  • primary_identity_id (Optional[str]) – ID for the user.

  • primary_identity_source_arn (Optional[str]) – Amazon Resource Name (ARN) for the identity source. The identity source manages the user authentication for approvers.

  • primary_identity_status (Optional[str]) – Status for the identity source. For example, if an approver has accepted a team invitation with a user authentication method managed by the identity source.

  • response_time (Optional[str]) – Timestamp when the approver responded to an approval team invitation.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mpa-approvalteam-approver.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mpa import mixins as mpa_mixins

approver_property = mpa_mixins.CfnApprovalTeamPropsMixin.ApproverProperty(
    approver_id="approverId",
    primary_identity_id="primaryIdentityId",
    primary_identity_source_arn="primaryIdentitySourceArn",
    primary_identity_status="primaryIdentityStatus",
    response_time="responseTime"
)

Attributes

approver_id

ID for the approver.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mpa-approvalteam-approver.html#cfn-mpa-approvalteam-approver-approverid

primary_identity_id

ID for the user.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mpa-approvalteam-approver.html#cfn-mpa-approvalteam-approver-primaryidentityid

primary_identity_source_arn

Amazon Resource Name (ARN) for the identity source.

The identity source manages the user authentication for approvers.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mpa-approvalteam-approver.html#cfn-mpa-approvalteam-approver-primaryidentitysourcearn

primary_identity_status

Status for the identity source.

For example, if an approver has accepted a team invitation with a user authentication method managed by the identity source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mpa-approvalteam-approver.html#cfn-mpa-approvalteam-approver-primaryidentitystatus

response_time

Timestamp when the approver responded to an approval team invitation.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mpa-approvalteam-approver.html#cfn-mpa-approvalteam-approver-responsetime

MofNApprovalStrategyProperty

class CfnApprovalTeamPropsMixin.MofNApprovalStrategyProperty(*, min_approvals_required=None)

Bases: object

Strategy for how an approval team grants approval.

Parameters:

min_approvals_required (Union[int, float, None]) – Minimum number of approvals (M) required for a total number of approvers (N).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mpa-approvalteam-mofnapprovalstrategy.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mpa import mixins as mpa_mixins

mof_nApproval_strategy_property = mpa_mixins.CfnApprovalTeamPropsMixin.MofNApprovalStrategyProperty(
    min_approvals_required=123
)

Attributes

min_approvals_required

Minimum number of approvals (M) required for a total number of approvers (N).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mpa-approvalteam-mofnapprovalstrategy.html#cfn-mpa-approvalteam-mofnapprovalstrategy-minapprovalsrequired

PolicyProperty

class CfnApprovalTeamPropsMixin.PolicyProperty(*, policy_arn=None)

Bases: object

Contains details for a policy.

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

Parameters:

policy_arn (Optional[str])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mpa-approvalteam-policy.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mpa import mixins as mpa_mixins

policy_property = mpa_mixins.CfnApprovalTeamPropsMixin.PolicyProperty(
    policy_arn="policyArn"
)

Attributes

policy_arn

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mpa-approvalteam-policy.html#cfn-mpa-approvalteam-policy-policyarn

Type:

see