Class CfnApprovalTeam

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-07-16T11:43:18.541Z") @Stability(Stable) public class CfnApprovalTeam extends CfnResource implements IInspectable, ITaggableV2
Creates a new approval team.

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

Example:

 // 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.*;
 CfnApprovalTeam cfnApprovalTeam = CfnApprovalTeam.Builder.create(this, "MyCfnApprovalTeam")
         .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();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnApprovalTeam

      protected CfnApprovalTeam(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnApprovalTeam

      protected CfnApprovalTeam(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnApprovalTeam

      @Stability(Stable) public CfnApprovalTeam(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnApprovalTeamProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      Amazon Resource Name (ARN) for the team.
    • getAttrCreationTime

      @Stability(Stable) @NotNull public String getAttrCreationTime()
      Timestamp when the team was created.
    • getAttrLastUpdateTime

      @Stability(Stable) @NotNull public String getAttrLastUpdateTime()
      Timestamp when the team was last updated.
    • getAttrNumberOfApprovers

      @Stability(Stable) @NotNull public Number getAttrNumberOfApprovers()
      Total number of approvers in the team.
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
      Status for the team.

      For more information, see Team health in the Multi-party approval User Guide .

    • getAttrStatusCode

      @Stability(Stable) @NotNull public String getAttrStatusCode()
      Status code for the team.

      For more information, see Team health in the Multi-party approval User Guide .

    • getAttrStatusMessage

      @Stability(Stable) @NotNull public String getAttrStatusMessage()
      Message describing the status for the team.
    • getAttrUpdateSessionArn

      @Stability(Stable) @NotNull public String getAttrUpdateSessionArn()
      Timestamp when the team was last updated.
    • getAttrVersionId

      @Stability(Stable) @NotNull public String getAttrVersionId()
      Version ID for the team.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getApprovalStrategy

      @Stability(Stable) @NotNull public Object getApprovalStrategy()
      Contains details for how an approval team grants approval.
    • setApprovalStrategy

      @Stability(Stable) public void setApprovalStrategy(@NotNull IResolvable value)
      Contains details for how an approval team grants approval.
    • setApprovalStrategy

      @Stability(Stable) public void setApprovalStrategy(@NotNull CfnApprovalTeam.ApprovalStrategyProperty value)
      Contains details for how an approval team grants approval.
    • getApprovers

      @Stability(Stable) @NotNull public Object getApprovers()
      Contains details for an approver.
    • setApprovers

      @Stability(Stable) public void setApprovers(@NotNull IResolvable value)
      Contains details for an approver.
    • setApprovers

      @Stability(Stable) public void setApprovers(@NotNull List<Object> value)
      Contains details for an approver.
    • getDescription

      @Stability(Stable) @NotNull public String getDescription()
      Description for the team.
    • setDescription

      @Stability(Stable) public void setDescription(@NotNull String value)
      Description for the team.
    • getName

      @Stability(Stable) @NotNull public String getName()
      Name of the team.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      Name of the team.
    • getPolicies

      @Stability(Stable) @NotNull public Object getPolicies()
      Contains details for a policy.
    • setPolicies

      @Stability(Stable) public void setPolicies(@NotNull IResolvable value)
      Contains details for a policy.
    • setPolicies

      @Stability(Stable) public void setPolicies(@NotNull List<Object> value)
      Contains details for a policy.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      Tags that you have added to the specified resource.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      Tags that you have added to the specified resource.