# ServiceConnectTlsConfigurationProperty

The key that encrypts and decrypts your resources for Service Connect TLS.

- Source: Generated at build time
- Type last changed: v2.123.0 · 24 Jan 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const serviceConnectTlsConfigurationProperty: ecs.CfnService.ServiceConnectTlsConfigurationProperty = {
  issuerCertificateAuthority: {
    awsPcaAuthorityArn: 'awsPcaAuthorityArn',
  },

  // the properties below are optional
  kmsKey: 'kmsKey',
  roleArn: 'roleArn',
};
```

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_ecs as ecs

service_connect_tls_configuration_property = ecs.CfnService.ServiceConnectTlsConfigurationProperty(
    issuer_certificate_authority=ecs.CfnService.ServiceConnectTlsCertificateAuthorityProperty(
        aws_pca_authority_arn="awsPcaAuthorityArn"
    ),

    # the properties below are optional
    kms_key="kmsKey",
    role_arn="roleArn"
)
```

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.ecs.*;

ServiceConnectTlsConfigurationProperty serviceConnectTlsConfigurationProperty = ServiceConnectTlsConfigurationProperty.builder()
        .issuerCertificateAuthority(ServiceConnectTlsCertificateAuthorityProperty.builder()
                .awsPcaAuthorityArn("awsPcaAuthorityArn")
                .build())

        // the properties below are optional
        .kmsKey("kmsKey")
        .roleArn("roleArn")
        .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.ECS;

var serviceConnectTlsConfigurationProperty = new ServiceConnectTlsConfigurationProperty {
    IssuerCertificateAuthority = new ServiceConnectTlsCertificateAuthorityProperty {
        AwsPcaAuthorityArn = "awsPcaAuthorityArn"
    },

    // the properties below are optional
    KmsKey = "kmsKey",
    RoleArn = "roleArn"
};
```

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"

serviceConnectTlsConfigurationProperty := &ServiceConnectTlsConfigurationProperty{
	IssuerCertificateAuthority: &ServiceConnectTlsCertificateAuthorityProperty{
		AwsPcaAuthorityArn: jsii.String("awsPcaAuthorityArn"),
	},

	// the properties below are optional
	KmsKey: jsii.String("kmsKey"),
	RoleArn: jsii.String("roleArn"),
}
```

## Properties

- `issuerCertificateAuthority`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnService.ServiceConnectTlsCertificateAuthorityProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.CfnService.ServiceConnectTlsCertificateAuthorityProperty.html) (required) — The signer certificate authority.

- `kmsKey`: string — The AWS Key Management Service key.

- `roleArn`: string — The Amazon Resource Name (ARN) of the IAM role that's associated with the Service Connect TLS.
