Class: AWSCDK::Budgets::CfnBudgetsAction::IAMActionDefinitionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Budgets::CfnBudgetsAction::IAMActionDefinitionProperty
- Defined in:
- budgets/cfn_budgets_action.rb
Overview
The AWS Identity and Access Management ( IAM ) action definition details.
Instance Attribute Summary collapse
-
#groups ⇒ Array<String>?
readonly
A list of groups to be attached.
-
#policy_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the policy to be attached.
-
#roles ⇒ Array<String>?
readonly
A list of roles to be attached.
-
#users ⇒ Array<String>?
readonly
A list of users to be attached.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(policy_arn:, groups: nil, roles: nil, users: nil) ⇒ IAMActionDefinitionProperty
constructor
A new instance of IAMActionDefinitionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(policy_arn:, groups: nil, roles: nil, users: nil) ⇒ IAMActionDefinitionProperty
Returns a new instance of IAMActionDefinitionProperty.
717 718 719 720 721 722 723 724 725 726 |
# File 'budgets/cfn_budgets_action.rb', line 717 def initialize(policy_arn:, groups: nil, roles: nil, users: nil) @policy_arn = policy_arn Jsii::Type.check_type(@policy_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyArn") @groups = groups Jsii::Type.check_type(@groups, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "groups") unless @groups.nil? @roles = roles Jsii::Type.check_type(@roles, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "roles") unless @roles.nil? @users = users Jsii::Type.check_type(@users, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "users") unless @users.nil? end |
Instance Attribute Details
#groups ⇒ Array<String>? (readonly)
A list of groups to be attached.
There must be at least one group.
739 740 741 |
# File 'budgets/cfn_budgets_action.rb', line 739 def groups @groups end |
#policy_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the policy to be attached.
732 733 734 |
# File 'budgets/cfn_budgets_action.rb', line 732 def policy_arn @policy_arn end |
#roles ⇒ Array<String>? (readonly)
A list of roles to be attached.
There must be at least one role.
746 747 748 |
# File 'budgets/cfn_budgets_action.rb', line 746 def roles @roles end |
#users ⇒ Array<String>? (readonly)
A list of users to be attached.
There must be at least one user.
753 754 755 |
# File 'budgets/cfn_budgets_action.rb', line 753 def users @users end |
Class Method Details
.jsii_properties ⇒ Object
755 756 757 758 759 760 761 762 |
# File 'budgets/cfn_budgets_action.rb', line 755 def self.jsii_properties { :policy_arn => "policyArn", :groups => "groups", :roles => "roles", :users => "users", } end |
Instance Method Details
#to_jsii ⇒ Object
764 765 766 767 768 769 770 771 772 773 |
# File 'budgets/cfn_budgets_action.rb', line 764 def to_jsii result = {} result.merge!({ "policyArn" => @policy_arn, "groups" => @groups, "roles" => @roles, "users" => @users, }) result.compact end |