com.pulumi.aws.lightsail.outputs.ContainerServicePrivateRegistryAccessEcrImagePullerRole Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.lightsail.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ContainerServicePrivateRegistryAccessEcrImagePullerRole {
/**
* @return A Boolean value that indicates whether to activate the role. The default is `false`.
*
*/
private @Nullable Boolean isActive;
/**
* @return The principal ARN of the container service. The principal ARN can be used to create a trust
* relationship between your standard AWS account and your Lightsail container service. This allows you to give your
* service permission to access resources in your standard AWS account.
*
*/
private @Nullable String principalArn;
private ContainerServicePrivateRegistryAccessEcrImagePullerRole() {}
/**
* @return A Boolean value that indicates whether to activate the role. The default is `false`.
*
*/
public Optional isActive() {
return Optional.ofNullable(this.isActive);
}
/**
* @return The principal ARN of the container service. The principal ARN can be used to create a trust
* relationship between your standard AWS account and your Lightsail container service. This allows you to give your
* service permission to access resources in your standard AWS account.
*
*/
public Optional principalArn() {
return Optional.ofNullable(this.principalArn);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ContainerServicePrivateRegistryAccessEcrImagePullerRole defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean isActive;
private @Nullable String principalArn;
public Builder() {}
public Builder(ContainerServicePrivateRegistryAccessEcrImagePullerRole defaults) {
Objects.requireNonNull(defaults);
this.isActive = defaults.isActive;
this.principalArn = defaults.principalArn;
}
@CustomType.Setter
public Builder isActive(@Nullable Boolean isActive) {
this.isActive = isActive;
return this;
}
@CustomType.Setter
public Builder principalArn(@Nullable String principalArn) {
this.principalArn = principalArn;
return this;
}
public ContainerServicePrivateRegistryAccessEcrImagePullerRole build() {
final var _resultValue = new ContainerServicePrivateRegistryAccessEcrImagePullerRole();
_resultValue.isActive = isActive;
_resultValue.principalArn = principalArn;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy