Class: AWSCDK::IoTSiteWise::CfnAccessPolicy::IAMUserProperty

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 user.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arn: nil) ⇒ IAMUserProperty

Returns a new instance of IAMUserProperty.

Parameters:

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

    The ARN of the IAM user. For more information, see IAM ARNs in the IAM User Guide .



712
713
714
715
# File 'io_t_site_wise/cfn_access_policy.rb', line 712

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 user. For more information, see IAM ARNs in the IAM User Guide .

If you delete the IAM user, access policies that contain this identity include an empty arn . You can delete the access policy for the IAM user that no longer exists.



723
724
725
# File 'io_t_site_wise/cfn_access_policy.rb', line 723

def arn
  @arn
end

Class Method Details

.jsii_propertiesObject



725
726
727
728
729
# File 'io_t_site_wise/cfn_access_policy.rb', line 725

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

Instance Method Details

#to_jsiiObject



731
732
733
734
735
736
737
# File 'io_t_site_wise/cfn_access_policy.rb', line 731

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