Class: AWSCDK::IoTSiteWise::CfnAccessPolicy::IAMRoleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTSiteWise::CfnAccessPolicy::IAMRoleProperty
- 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
-
#arn ⇒ String?
readonly
The ARN of the IAM role.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arn: nil) ⇒ IAMRoleProperty
constructor
A new instance of IAMRoleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(arn: nil) ⇒ IAMRoleProperty
Returns a new instance of IAMRoleProperty.
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
#arn ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |