# TrustStoreRevocationProps

Properties for the trust store revocation.

Used as props by: [TrustStoreRevocation](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.TrustStoreRevocation.html)

- Source: [`aws-elasticloadbalancingv2/lib/alb/trust-store-revocation.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/trust-store-revocation.ts#L12)
- Type last changed: v2.234.0 · 8 Jan 2026

## Example

TypeScript:

```ts
declare const trustStore: elbv2.TrustStore;
declare const bucket: s3.Bucket;

new elbv2.TrustStoreRevocation(this, 'Revocation', {
  trustStore,
  revocationContents: [
    {
      revocationType: elbv2.RevocationType.CRL,
      bucket,
      key: 'crl.pem',
    },
  ],
});
```

Python:

```python
# trust_store: elbv2.TrustStore
# bucket: s3.Bucket

elbv2.TrustStoreRevocation(self, "Revocation",
    trust_store=trust_store,
    revocation_contents=[elbv2.RevocationContent(
        revocation_type=elbv2.RevocationType.CRL,
        bucket=bucket,
        key="crl.pem"
    )
    ]
)
```

Java:

```java
TrustStore trustStore;
Bucket bucket;

TrustStoreRevocation.Builder.create(this, "Revocation")
        .trustStore(trustStore)
        .revocationContents(List.of(RevocationContent.builder()
                .revocationType(RevocationType.CRL)
                .bucket(bucket)
                .key("crl.pem")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
TrustStore trustStore;
Bucket bucket;

new TrustStoreRevocation(this, "Revocation", new TrustStoreRevocationProps {
    TrustStore = trustStore,
    RevocationContents = new [] { new RevocationContent {
        RevocationType = RevocationType.CRL,
        Bucket = bucket,
        Key = "crl.pem"
    } }
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var trustStore TrustStore
var bucket Bucket

elbv2.NewTrustStoreRevocation(this, jsii.String("Revocation"), &TrustStoreRevocationProps{
	TrustStore: TrustStore,
	RevocationContents: []RevocationContent{
		&RevocationContent{
			RevocationType: elbv2.RevocationType_CRL,
			Bucket: *Bucket,
			Key: jsii.String("crl.pem"),
		},
	},
})
```

## Properties

- `revocationContents`: [RevocationContent](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.RevocationContent.html)[] (required) — The revocation file to add.

- `trustStore`: [ITrustStoreRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_elasticloadbalancingv2.ITrustStoreRef.html) (required) — The trust store.
