# RevocationContent

Information about a revocation file.

- 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#L28)
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticloadbalancingv2 as elbv2 } from 'aws-cdk-lib';
import { aws_s3 as interfaces_s3 } from 'aws-cdk-lib/interfaces';

declare const bucketRef: interfaces_s3.IBucketRef;
const revocationContent: elbv2.RevocationContent = {
  bucket: bucketRef,
  key: 'key',

  // the properties below are optional
  revocationType: elbv2.RevocationType.CRL,
  version: 'version',
};
```

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_elasticloadbalancingv2 as elbv2
from aws_cdk.interfaces import aws_s3 as interfaces_s3

# bucket_ref: interfaces_s3.IBucketRef

revocation_content = elbv2.RevocationContent(
    bucket=bucket_ref,
    key="key",

    # the properties below are optional
    revocation_type=elbv2.RevocationType.CRL,
    version="version"
)
```

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.elasticloadbalancingv2.*;
import software.amazon.awscdk.interfaces.s3.*;

IBucketRef bucketRef;

RevocationContent revocationContent = RevocationContent.builder()
        .bucket(bucketRef)
        .key("key")

        // the properties below are optional
        .revocationType(RevocationType.CRL)
        .version("version")
        .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.ElasticLoadBalancingV2;
using Amazon.CDK.Interfaces.S3;

IBucketRef bucketRef;

var revocationContent = new RevocationContent {
    Bucket = bucketRef,
    Key = "key",

    // the properties below are optional
    RevocationType = RevocationType.CRL,
    Version = "version"
};
```

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"
import "github.com/aws/aws-cdk-go/awscdk"

var bucketRef IBucketRef

revocationContent := &RevocationContent{
	Bucket: bucketRef,
	Key: jsii.String("key"),

	// the properties below are optional
	RevocationType: awscdk.Aws_elasticloadbalancingv2.RevocationType_CRL,
	Version: jsii.String("version"),
}
```

## Properties

- `bucket`: [IBucketRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_s3.IBucketRef.html) (required) — The Amazon S3 bucket for the revocation file.

- `key`: string (required) — The Amazon S3 path for the revocation file.

- `revocationType`: [RevocationType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.RevocationType.html) = RevocationType.CRL — The type of revocation file.

- `version`: string — The Amazon S3 object version of the revocation file.

  **Default:** latest version
