Class: AWSCDK::MPA::CfnApprovalTeam::ApproverProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MPA::CfnApprovalTeam::ApproverProperty
- Defined in:
- mpa/cfn_approval_team.rb
Overview
Contains details for an approver.
Instance Attribute Summary collapse
-
#approver_id ⇒ String?
readonly
ID for the approver.
-
#primary_identity_id ⇒ String
readonly
ID for the user.
-
#primary_identity_source_arn ⇒ String
readonly
Amazon Resource Name (ARN) for the identity source.
-
#primary_identity_status ⇒ String?
readonly
Status for the identity source.
-
#response_time ⇒ String?
readonly
Timestamp when the approver responded to an approval team invitation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(primary_identity_id:, primary_identity_source_arn:, approver_id: nil, primary_identity_status: nil, response_time: nil) ⇒ ApproverProperty
constructor
A new instance of ApproverProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(primary_identity_id:, primary_identity_source_arn:, approver_id: nil, primary_identity_status: nil, response_time: nil) ⇒ ApproverProperty
Returns a new instance of ApproverProperty.
690 691 692 693 694 695 696 697 698 699 700 701 |
# File 'mpa/cfn_approval_team.rb', line 690 def initialize(primary_identity_id:, primary_identity_source_arn:, approver_id: nil, primary_identity_status: nil, response_time: nil) @primary_identity_id = primary_identity_id Jsii::Type.check_type(@primary_identity_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "primaryIdentityId") @primary_identity_source_arn = primary_identity_source_arn Jsii::Type.check_type(@primary_identity_source_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "primaryIdentitySourceArn") @approver_id = approver_id Jsii::Type.check_type(@approver_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "approverId") unless @approver_id.nil? @primary_identity_status = primary_identity_status Jsii::Type.check_type(@primary_identity_status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "primaryIdentityStatus") unless @primary_identity_status.nil? @response_time = response_time Jsii::Type.check_type(@response_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "responseTime") unless @response_time.nil? end |
Instance Attribute Details
#approver_id ⇒ String? (readonly)
ID for the approver.
719 720 721 |
# File 'mpa/cfn_approval_team.rb', line 719 def approver_id @approver_id end |
#primary_identity_id ⇒ String (readonly)
ID for the user.
707 708 709 |
# File 'mpa/cfn_approval_team.rb', line 707 def primary_identity_id @primary_identity_id end |
#primary_identity_source_arn ⇒ String (readonly)
Amazon Resource Name (ARN) for the identity source.
The identity source manages the user authentication for approvers.
714 715 716 |
# File 'mpa/cfn_approval_team.rb', line 714 def primary_identity_source_arn @primary_identity_source_arn end |
#primary_identity_status ⇒ String? (readonly)
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.
726 727 728 |
# File 'mpa/cfn_approval_team.rb', line 726 def primary_identity_status @primary_identity_status end |
#response_time ⇒ String? (readonly)
Timestamp when the approver responded to an approval team invitation.
731 732 733 |
# File 'mpa/cfn_approval_team.rb', line 731 def response_time @response_time end |
Class Method Details
.jsii_properties ⇒ Object
733 734 735 736 737 738 739 740 741 |
# File 'mpa/cfn_approval_team.rb', line 733 def self.jsii_properties { :primary_identity_id => "primaryIdentityId", :primary_identity_source_arn => "primaryIdentitySourceArn", :approver_id => "approverId", :primary_identity_status => "primaryIdentityStatus", :response_time => "responseTime", } end |
Instance Method Details
#to_jsii ⇒ Object
743 744 745 746 747 748 749 750 751 752 753 |
# File 'mpa/cfn_approval_team.rb', line 743 def to_jsii result = {} result.merge!({ "primaryIdentityId" => @primary_identity_id, "primaryIdentitySourceArn" => @primary_identity_source_arn, "approverId" => @approver_id, "primaryIdentityStatus" => @primary_identity_status, "responseTime" => @response_time, }) result.compact end |