Class: AWSCDK::IoTSiteWise::CfnAccessPolicy::IAMRoleProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_site_wise/cfn_access_policy.rb

Overview

Contains information about an AWS Identity and Access Management role.

For more information, see IAM roles in the IAM User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arn: nil) ⇒ IAMRoleProperty

Returns a new instance of IAMRoleProperty.

Parameters:

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

    The ARN of the IAM role.



677
678
679
680
# File 'io_t_site_wise/cfn_access_policy.rb', line 677

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

Instance Attribute Details

#arnString? (readonly)

The ARN of the IAM role.

For more information, see IAM ARNs in the IAM User Guide .



688
689
690
# File 'io_t_site_wise/cfn_access_policy.rb', line 688

def arn
  @arn
end

Class Method Details

.jsii_propertiesObject



690
691
692
693
694
# File 'io_t_site_wise/cfn_access_policy.rb', line 690

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

Instance Method Details

#to_jsiiObject



696
697
698
699
700
701
702
# File 'io_t_site_wise/cfn_access_policy.rb', line 696

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