Class: AWSCDK::IAM::CfnGroup::PolicyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
iam/cfn_group.rb

Overview

Contains information about an attached policy.

An attached policy is a managed policy that has been attached to a user, group, or role.

For more information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policy_document:, policy_name:) ⇒ PolicyProperty

Returns a new instance of PolicyProperty.

Parameters:

  • policy_document (Object)

    The policy document.

  • policy_name (String)

    The friendly name (not ARN) identifying the policy.



559
560
561
562
563
564
# File 'iam/cfn_group.rb', line 559

def initialize(policy_document:, policy_name:)
  @policy_document = policy_document
  Jsii::Type.check_type(@policy_document, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "policyDocument")
  @policy_name = policy_name
  Jsii::Type.check_type(@policy_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyName")
end

Instance Attribute Details

#policy_documentObject (readonly)

The policy document.



570
571
572
# File 'iam/cfn_group.rb', line 570

def policy_document
  @policy_document
end

#policy_nameString (readonly)

The friendly name (not ARN) identifying the policy.



575
576
577
# File 'iam/cfn_group.rb', line 575

def policy_name
  @policy_name
end

Class Method Details

.jsii_propertiesObject



577
578
579
580
581
582
# File 'iam/cfn_group.rb', line 577

def self.jsii_properties
  {
    :policy_document => "policyDocument",
    :policy_name => "policyName",
  }
end

Instance Method Details

#to_jsiiObject



584
585
586
587
588
589
590
591
# File 'iam/cfn_group.rb', line 584

def to_jsii
  result = {}
  result.merge!({
    "policyDocument" => @policy_document,
    "policyName" => @policy_name,
  })
  result.compact
end