Class: AWSCDK::APS::CfnScraper::RoleConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
aps/cfn_scraper.rb

Overview

The role configuration in an Amazon Managed Service for Prometheus scraper.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source_role_arn: nil, target_role_arn: nil) ⇒ RoleConfigurationProperty

Returns a new instance of RoleConfigurationProperty.

Parameters:

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

    The ARN of the source role.

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

    The ARN of the target role.



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_arnString? (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_arnString? (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_propertiesObject



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_jsiiObject



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