Skip to content
v2.278.0

TrustedSignersProperty Struct ​

A list of AWS accounts whose public keys CloudFront can use to verify the signatures of signed URLs and signed cookies.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const trustedSignersProperty: cloudfront.CfnStreamingDistribution.TrustedSignersProperty = {
  enabled: false,

  // the properties below are optional
  awsAccountNumbers: ['awsAccountNumbers'],
};
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_cloudfront as cloudfront

trusted_signers_property = cloudfront.CfnStreamingDistribution.TrustedSignersProperty(
    enabled=False,

    # the properties below are optional
    aws_account_numbers=["awsAccountNumbers"]
)
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.cloudfront.*;

TrustedSignersProperty trustedSignersProperty = TrustedSignersProperty.builder()
        .enabled(false)

        // the properties below are optional
        .awsAccountNumbers(List.of("awsAccountNumbers"))
        .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.CloudFront;

var trustedSignersProperty = new TrustedSignersProperty {
    Enabled = false,

    // the properties below are optional
    AwsAccountNumbers = new [] { "awsAccountNumbers" }
};
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"

trustedSignersProperty := &TrustedSignersProperty{
	Enabled: jsii.Boolean(false),

	// the properties below are optional
	AwsAccountNumbers: []*string{
		jsii.String("awsAccountNumbers"),
	},
}

Properties ​

awsAccountNumbersoptionalstring[]aws_account_numbersoptionaltyping.List[str]awsAccountNumbersoptionalList<String>AwsAccountNumbersoptionalstring[]AwsAccountNumbersoptional*[]*string #
An AWS account number that contains active CloudFront key pairs that CloudFront can use to verify the signatures of signed URLs and signed cookies.

If the AWS account that owns the key pairs is the same account that owns the CloudFront distribution, the value of this field is self .

enabledboolean | IResolvableenabledtyping.Union[bool, IResolvable]enabledBooleanEnabledboolEnabledinterface{} required #
This field is `true` if any of the AWS accounts in the list are configured as trusted signers.

If not, this field is false .