Class: AWSCDK::AppRunner::CfnService::AuthenticationConfigurationProperty

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

Overview

Describes resources needed to authenticate access to some source repositories.

The specific resource depends on the repository provider.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_role_arn: nil, connection_arn: nil) ⇒ AuthenticationConfigurationProperty

Returns a new instance of AuthenticationConfigurationProperty.

Parameters:

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

    The Amazon Resource Name (ARN) of the IAM role that grants the App Runner service access to a source repository.

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

    The Amazon Resource Name (ARN) of the App Runner connection that enables the App Runner service to connect to a source repository.



663
664
665
666
667
668
# File 'app_runner/cfn_service.rb', line 663

def initialize(access_role_arn: nil, connection_arn: nil)
  @access_role_arn = access_role_arn
  Jsii::Type.check_type(@access_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessRoleArn") unless @access_role_arn.nil?
  @connection_arn = connection_arn
  Jsii::Type.check_type(@connection_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectionArn") unless @connection_arn.nil?
end

Instance Attribute Details

#access_role_arnString? (readonly)

The Amazon Resource Name (ARN) of the IAM role that grants the App Runner service access to a source repository.

It's required for ECR image repositories (but not for ECR Public repositories).



676
677
678
# File 'app_runner/cfn_service.rb', line 676

def access_role_arn
  @access_role_arn
end

#connection_arnString? (readonly)

The Amazon Resource Name (ARN) of the App Runner connection that enables the App Runner service to connect to a source repository.

It's required for GitHub code repositories.



683
684
685
# File 'app_runner/cfn_service.rb', line 683

def connection_arn
  @connection_arn
end

Class Method Details

.jsii_propertiesObject



685
686
687
688
689
690
# File 'app_runner/cfn_service.rb', line 685

def self.jsii_properties
  {
    :access_role_arn => "accessRoleArn",
    :connection_arn => "connectionArn",
  }
end

Instance Method Details

#to_jsiiObject



692
693
694
695
696
697
698
699
# File 'app_runner/cfn_service.rb', line 692

def to_jsii
  result = {}
  result.merge!({
    "accessRoleArn" => @access_role_arn,
    "connectionArn" => @connection_arn,
  })
  result.compact
end