Class CfnContainer.PrivateRegistryAccessProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnContainer.PrivateRegistryAccessProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainer.PrivateRegistryAccessProperty>
- Enclosing interface:
CfnContainer.PrivateRegistryAccessProperty
@Stability(Stable)
public static final class CfnContainer.PrivateRegistryAccessProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainer.PrivateRegistryAccessProperty>
A builder for
CfnContainer.PrivateRegistryAccessProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.ecrImagePullerRole
(IResolvable ecrImagePullerRole) Sets the value ofCfnContainer.PrivateRegistryAccessProperty.getEcrImagePullerRole()
ecrImagePullerRole
(CfnContainer.EcrImagePullerRoleProperty ecrImagePullerRole) Sets the value ofCfnContainer.PrivateRegistryAccessProperty.getEcrImagePullerRole()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ecrImagePullerRole
@Stability(Stable) public CfnContainer.PrivateRegistryAccessProperty.Builder ecrImagePullerRole(IResolvable ecrImagePullerRole) Sets the value ofCfnContainer.PrivateRegistryAccessProperty.getEcrImagePullerRole()
- Parameters:
ecrImagePullerRole
- An object that describes the activation status of the role that you can use to grant a Lightsail container service access to Amazon ECR private repositories. If the role is activated, the Amazon Resource Name (ARN) of the role is also listed.- Returns:
this
-
ecrImagePullerRole
@Stability(Stable) public CfnContainer.PrivateRegistryAccessProperty.Builder ecrImagePullerRole(CfnContainer.EcrImagePullerRoleProperty ecrImagePullerRole) Sets the value ofCfnContainer.PrivateRegistryAccessProperty.getEcrImagePullerRole()
- Parameters:
ecrImagePullerRole
- An object that describes the activation status of the role that you can use to grant a Lightsail container service access to Amazon ECR private repositories. If the role is activated, the Amazon Resource Name (ARN) of the role is also listed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContainer.PrivateRegistryAccessProperty>
- Returns:
- a new instance of
CfnContainer.PrivateRegistryAccessProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-