Class: AWSCDK::DevOpsAgent::CfnService::AzureIdentityServiceDetailsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dev_ops_agent/cfn_service.rb

Overview

Azure Identity service configuration for federated identity.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client_id:, tenant_id:, web_identity_role_arn:, web_identity_token_audiences:) ⇒ AzureIdentityServiceDetailsProperty

Returns a new instance of AzureIdentityServiceDetailsProperty.

Parameters:

  • client_id (String)

    Azure AD application client ID.

  • tenant_id (String)

    Azure AD tenant ID.

  • web_identity_role_arn (String)

    ARN of the IAM role for web identity token exchange.

  • web_identity_token_audiences (Array<String>)

    List of audiences for the web identity token.



784
785
786
787
788
789
790
791
792
793
# File 'dev_ops_agent/cfn_service.rb', line 784

def initialize(client_id:, tenant_id:, web_identity_role_arn:, web_identity_token_audiences:)
  @client_id = client_id
  Jsii::Type.check_type(@client_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientId")
  @tenant_id = tenant_id
  Jsii::Type.check_type(@tenant_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tenantId")
  @web_identity_role_arn = web_identity_role_arn
  Jsii::Type.check_type(@web_identity_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "webIdentityRoleArn")
  @web_identity_token_audiences = web_identity_token_audiences
  Jsii::Type.check_type(@web_identity_token_audiences, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "webIdentityTokenAudiences")
end

Instance Attribute Details

#client_idString (readonly)

Azure AD application client ID.



799
800
801
# File 'dev_ops_agent/cfn_service.rb', line 799

def client_id
  @client_id
end

#tenant_idString (readonly)

Azure AD tenant ID.



804
805
806
# File 'dev_ops_agent/cfn_service.rb', line 804

def tenant_id
  @tenant_id
end

#web_identity_role_arnString (readonly)

ARN of the IAM role for web identity token exchange.



809
810
811
# File 'dev_ops_agent/cfn_service.rb', line 809

def web_identity_role_arn
  @web_identity_role_arn
end

#web_identity_token_audiencesArray<String> (readonly)

List of audiences for the web identity token.



814
815
816
# File 'dev_ops_agent/cfn_service.rb', line 814

def web_identity_token_audiences
  @web_identity_token_audiences
end

Class Method Details

.jsii_propertiesObject



816
817
818
819
820
821
822
823
# File 'dev_ops_agent/cfn_service.rb', line 816

def self.jsii_properties
  {
    :client_id => "clientId",
    :tenant_id => "tenantId",
    :web_identity_role_arn => "webIdentityRoleArn",
    :web_identity_token_audiences => "webIdentityTokenAudiences",
  }
end

Instance Method Details

#to_jsiiObject



825
826
827
828
829
830
831
832
833
834
# File 'dev_ops_agent/cfn_service.rb', line 825

def to_jsii
  result = {}
  result.merge!({
    "clientId" => @client_id,
    "tenantId" => @tenant_id,
    "webIdentityRoleArn" => @web_identity_role_arn,
    "webIdentityTokenAudiences" => @web_identity_token_audiences,
  })
  result.compact
end