TenantConfigProperty Struct
This field only supports multi-tenant distributions.
You can't specify this field for standard distributions. For more information, see Unsupported features for SaaS Manager for Amazon CloudFront in the Amazon CloudFront Developer Guide .
The configuration for a distribution tenant.
| Source | |
|---|---|
| Type last changed |
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 tenantConfigProperty: cloudfront.CfnDistribution.TenantConfigProperty = {
parameterDefinitions: [{
definition: {
stringSchema: {
required: false,
// the properties below are optional
comment: 'comment',
defaultValue: 'defaultValue',
},
},
name: 'name',
}],
};
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
tenant_config_property = cloudfront.CfnDistribution.TenantConfigProperty(
parameter_definitions=[cloudfront.CfnDistribution.ParameterDefinitionProperty(
definition=cloudfront.CfnDistribution.DefinitionProperty(
string_schema=cloudfront.CfnDistribution.StringSchemaProperty(
required=False,
# the properties below are optional
comment="comment",
default_value="defaultValue"
)
),
name="name"
)]
)
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.*;
TenantConfigProperty tenantConfigProperty = TenantConfigProperty.builder()
.parameterDefinitions(List.of(ParameterDefinitionProperty.builder()
.definition(DefinitionProperty.builder()
.stringSchema(StringSchemaProperty.builder()
.required(false)
// the properties below are optional
.comment("comment")
.defaultValue("defaultValue")
.build())
.build())
.name("name")
.build()))
.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 tenantConfigProperty = new TenantConfigProperty {
ParameterDefinitions = new [] { new ParameterDefinitionProperty {
Definition = new DefinitionProperty {
StringSchema = new StringSchemaProperty {
Required = false,
// the properties below are optional
Comment = "comment",
DefaultValue = "defaultValue"
}
},
Name = "name"
} }
};
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"
tenantConfigProperty := &TenantConfigProperty{
ParameterDefinitions: []interface{}{
&ParameterDefinitionProperty{
Definition: &DefinitionProperty{
StringSchema: &StringSchemaProperty{
Required: jsii.Boolean(false),
// the properties below are optional
Comment: jsii.String("comment"),
DefaultValue: jsii.String("defaultValue"),
},
},
Name: jsii.String("name"),
},
},
}
Properties
parameterDefinitionsoptionalIResolvable | IResolvable | CfnDistribution.parameter_definitionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ParameterDefinitionProperty]]]parameterDefinitionsoptionalIResolvableParameterDefinitionsoptionalIResolvableParameterDefinitionsoptionalinterface{} #The parameters that you specify for a distribution tenant.