Class: AWSCDK::APS::CfnScraper::RoleConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APS::CfnScraper::RoleConfigurationProperty
- Defined in:
- aps/cfn_scraper.rb
Overview
The role configuration in an Amazon Managed Service for Prometheus scraper.
Instance Attribute Summary collapse
-
#source_role_arn ⇒ String?
readonly
The ARN of the source role.
-
#target_role_arn ⇒ String?
readonly
The ARN of the target role.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(source_role_arn: nil, target_role_arn: nil) ⇒ RoleConfigurationProperty
constructor
A new instance of RoleConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(source_role_arn: nil, target_role_arn: nil) ⇒ RoleConfigurationProperty
Returns a new instance of RoleConfigurationProperty.
816 817 818 819 820 821 |
# File 'aps/cfn_scraper.rb', line 816 def initialize(source_role_arn: nil, target_role_arn: nil) @source_role_arn = source_role_arn Jsii::Type.check_type(@source_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceRoleArn") unless @source_role_arn.nil? @target_role_arn = target_role_arn Jsii::Type.check_type(@target_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetRoleArn") unless @target_role_arn.nil? end |
Instance Attribute Details
#source_role_arn ⇒ String? (readonly)
The ARN of the source role.
827 828 829 |
# File 'aps/cfn_scraper.rb', line 827 def source_role_arn @source_role_arn end |
#target_role_arn ⇒ String? (readonly)
The ARN of the target role.
832 833 834 |
# File 'aps/cfn_scraper.rb', line 832 def target_role_arn @target_role_arn end |
Class Method Details
.jsii_properties ⇒ Object
834 835 836 837 838 839 |
# File 'aps/cfn_scraper.rb', line 834 def self.jsii_properties { :source_role_arn => "sourceRoleArn", :target_role_arn => "targetRoleArn", } end |
Instance Method Details
#to_jsii ⇒ Object
841 842 843 844 845 846 847 848 |
# File 'aps/cfn_scraper.rb', line 841 def to_jsii result = {} result.merge!({ "sourceRoleArn" => @source_role_arn, "targetRoleArn" => @target_role_arn, }) result.compact end |