Class: AWSCDK::EKSv2::OidcProviderNativeProps

Inherits:
OpenIdConnectProviderProps
  • Object
show all
Defined in:
ek_sv2/oidc_provider_native_props.rb

Overview

Initialization properties for OidcProviderNative.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url:, removal_policy: nil) ⇒ OidcProviderNativeProps

Returns a new instance of OidcProviderNativeProps.

Parameters:

  • url (String)

    The URL of the identity provider.

  • removal_policy (AWSCDK::RemovalPolicy, nil) (defaults to: nil)

    The removal policy to apply to the OpenID Connect Provider.



9
10
11
12
13
14
# File 'ek_sv2/oidc_provider_native_props.rb', line 9

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

Instance Attribute Details

#removal_policyAWSCDK::RemovalPolicy? (readonly)

Note:

Default: - RemovalPolicy.DESTROY

The removal policy to apply to the OpenID Connect Provider.

Returns:



33
34
35
# File 'ek_sv2/oidc_provider_native_props.rb', line 33

def removal_policy
  @removal_policy
end

#urlString (readonly)

The URL of the identity provider.

The URL must begin with https:// and should correspond to the iss claim in the provider's OpenID Connect ID tokens. Per the OIDC standard, path components are allowed but query parameters are not. Typically the URL consists of only a hostname, like https://server.example.org or https://example.com.

You can find your OIDC Issuer URL by: aws eks describe-cluster --name %cluster_name% --query "cluster.identity.oidc.issuer" --output text

Returns:

  • (String)


28
29
30
# File 'ek_sv2/oidc_provider_native_props.rb', line 28

def url
  @url
end

Class Method Details

.jsii_propertiesObject



35
36
37
38
39
40
# File 'ek_sv2/oidc_provider_native_props.rb', line 35

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

Instance Method Details

#to_jsiiObject



42
43
44
45
46
47
48
49
50
# File 'ek_sv2/oidc_provider_native_props.rb', line 42

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