# AuthenticationConfigurationProperty

Describes resources needed to authenticate access to some source repositories.

The specific resource depends on the repository provider.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apprunner as apprunner } from 'aws-cdk-lib';
const authenticationConfigurationProperty: apprunner.CfnService.AuthenticationConfigurationProperty = {
  accessRoleArn: 'accessRoleArn',
  connectionArn: 'connectionArn',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apprunner as apprunner

authentication_configuration_property = apprunner.CfnService.AuthenticationConfigurationProperty(
    access_role_arn="accessRoleArn",
    connection_arn="connectionArn"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apprunner.*;

AuthenticationConfigurationProperty authenticationConfigurationProperty = AuthenticationConfigurationProperty.builder()
        .accessRoleArn("accessRoleArn")
        .connectionArn("connectionArn")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppRunner;

var authenticationConfigurationProperty = new AuthenticationConfigurationProperty {
    AccessRoleArn = "accessRoleArn",
    ConnectionArn = "connectionArn"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

authenticationConfigurationProperty := &AuthenticationConfigurationProperty{
	AccessRoleArn: jsii.String("accessRoleArn"),
	ConnectionArn: jsii.String("connectionArn"),
}
```

## Properties

- `accessRoleArn`: string — 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).

- `connectionArn`: string — 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.
