@Generated(value="software.amazon.awssdk:codegen") public final class TrustedSigners extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TrustedSigners.Builder,TrustedSigners>
A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content.
If you want to require signed URLs in requests for objects in the target origin that match the
PathPattern
for this cache behavior, specify true
for Enabled
, and specify the
applicable values for Quantity
and Items
. For more information, see Serving Private Content
through CloudFront in the Amazon CloudFront Developer Guide.
If you don't want to require signed URLs in requests for objects that match PathPattern
, specify
false
for Enabled
and 0
for Quantity
. Omit Items
.
To add, change, or remove one or more trusted signers, change Enabled
to true
(if it's
currently false
), change Quantity
as applicable, and specify all of the trusted signers
that you want to include in the updated distribution.
For more information about updating the distribution configuration, see DistributionConfig in the Amazon CloudFront API Reference.
Modifier and Type | Class and Description |
---|---|
static interface |
TrustedSigners.Builder |
Modifier and Type | Method and Description |
---|---|
static TrustedSigners.Builder |
builder() |
Boolean |
enabled()
Specifies whether you want to require viewers to use signed URLs to access the files specified by
PathPattern and TargetOriginId . |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<String> |
items()
Optional: A complex type that contains trusted signers for this cache behavior.
|
Integer |
quantity()
The number of trusted signers for this cache behavior.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TrustedSigners.Builder> |
serializableBuilderClass() |
TrustedSigners.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public Boolean enabled()
Specifies whether you want to require viewers to use signed URLs to access the files specified by
PathPattern
and TargetOriginId
.
PathPattern
and TargetOriginId
.public Integer quantity()
The number of trusted signers for this cache behavior.
public List<String> items()
Optional: A complex type that contains trusted signers for this cache behavior. If Quantity
is 0
, you can omit Items
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
Quantity
is 0
, you can omit Items
.public TrustedSigners.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<TrustedSigners.Builder,TrustedSigners>
public static TrustedSigners.Builder builder()
public static Class<? extends TrustedSigners.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2019. All rights reserved.