Skip to content
v2.278.0

RevocationContent Struct ​

Information about a revocation file.

Example ​

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
# 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
// 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();
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"
};
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 ​

bucketIBucketRefbucketIBucketRefbucketIBucketRefBucketIBucketRefBucketIBucketRef required #
The Amazon S3 bucket for the revocation file.
keystringkeystrkeyStringKeystringKey*string required #
The Amazon S3 path for the revocation file.
revocationTypeoptionalRevocationTyperevocation_typeoptionalRevocationTyperevocationTypeoptionalRevocationTypeRevocationTypeoptionalRevocationTypeRevocationTypeoptionalRevocationType = RevocationType.CRL #
The type of revocation file.
versionoptionalstringversionoptionalstrversionoptionalStringVersionoptionalstringVersionoptional*string #
The Amazon S3 object version of the revocation file.

Default: latest version