Class: AWSCDK::Grafana::CfnWorkspace::IdpMetadataProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
grafana/cfn_workspace.rb

Overview

A structure containing the identity provider (IdP) metadata used to integrate the identity provider with this workspace.

You can specify the metadata either by providing a URL to its location in the url parameter, or by specifying the full metadata in XML format in the xml parameter. Specifying both will cause an error.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url: nil, xml: nil) ⇒ IdpMetadataProperty

Returns a new instance of IdpMetadataProperty.

Parameters:

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

    The URL of the location containing the IdP metadata.

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

    The full IdP metadata, in XML format.



875
876
877
878
879
880
# File 'grafana/cfn_workspace.rb', line 875

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

Instance Attribute Details

#urlString? (readonly)

The URL of the location containing the IdP metadata.



886
887
888
# File 'grafana/cfn_workspace.rb', line 886

def url
  @url
end

#xmlString? (readonly)

The full IdP metadata, in XML format.



891
892
893
# File 'grafana/cfn_workspace.rb', line 891

def xml
  @xml
end

Class Method Details

.jsii_propertiesObject



893
894
895
896
897
898
# File 'grafana/cfn_workspace.rb', line 893

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

Instance Method Details

#to_jsiiObject



900
901
902
903
904
905
906
907
# File 'grafana/cfn_workspace.rb', line 900

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