Class CdnAuthConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackagev2.alpha.CdnAuthConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CdnAuthConfiguration>
- Enclosing interface:
CdnAuthConfiguration
@Stability(Experimental)
public static final class CdnAuthConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<CdnAuthConfiguration>
A builder for
CdnAuthConfiguration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCdnAuthConfiguration.getRole()Sets the value ofCdnAuthConfiguration.getSecrets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
secrets
@Stability(Experimental) public CdnAuthConfiguration.Builder secrets(List<? extends ISecret> secrets) Sets the value ofCdnAuthConfiguration.getSecrets()- Parameters:
secrets- Secrets to use for CDN authorization. This parameter is required.- Returns:
this
-
role
Sets the value ofCdnAuthConfiguration.getRole()- Parameters:
role- Role to use for reading the secrets. If not provided, a role will be created automatically with the required permissions (secretsmanager:GetSecretValue, secretsmanager:DescribeSecret, secretsmanager:BatchGetSecretValue, and kms:Decrypt if the secret uses a customer-managed KMS key).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CdnAuthConfiguration>- Returns:
- a new instance of
CdnAuthConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-