Class: AWSCDK::SSO::CfnPermissionSet::CustomerManagedPolicyReferenceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sso/cfn_permission_set.rb

Overview

Specifies the name and path of a customer managed policy.

You must have an IAM policy that matches the name and path in each AWS account where you want to deploy your permission set.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, path: nil) ⇒ CustomerManagedPolicyReferenceProperty

Returns a new instance of CustomerManagedPolicyReferenceProperty.

Parameters:

  • name (String)

    The name of the IAM policy that you have configured in each account where you want to deploy your permission set.

  • path (String, nil) (defaults to: nil)

    The path to the IAM policy that you have configured in each account where you want to deploy your permission set.



638
639
640
641
642
643
# File 'sso/cfn_permission_set.rb', line 638

def initialize(name:, path: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @path = path
  Jsii::Type.check_type(@path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") unless @path.nil?
end

Instance Attribute Details

#nameString (readonly)

The name of the IAM policy that you have configured in each account where you want to deploy your permission set.



649
650
651
# File 'sso/cfn_permission_set.rb', line 649

def name
  @name
end

#pathString? (readonly)

The path to the IAM policy that you have configured in each account where you want to deploy your permission set.

The default is / . For more information, see Friendly names and paths in the IAM User Guide .



656
657
658
# File 'sso/cfn_permission_set.rb', line 656

def path
  @path
end

Class Method Details

.jsii_propertiesObject



658
659
660
661
662
663
# File 'sso/cfn_permission_set.rb', line 658

def self.jsii_properties
  {
    :name => "name",
    :path => "path",
  }
end

Instance Method Details

#to_jsiiObject



665
666
667
668
669
670
671
672
# File 'sso/cfn_permission_set.rb', line 665

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "path" => @path,
  })
  result.compact
end