com.pulumi.aws.eks.outputs.GetClusterVpcConfig 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.eks.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetClusterVpcConfig {
/**
* @return The cluster security group that was created by Amazon EKS for the cluster.
*
*/
private String clusterSecurityGroupId;
/**
* @return Indicates whether or not the Amazon EKS private API server endpoint is enabled.
*
*/
private Boolean endpointPrivateAccess;
/**
* @return Indicates whether or not the Amazon EKS public API server endpoint is enabled.
*
*/
private Boolean endpointPublicAccess;
/**
* @return List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint.
*
*/
private List publicAccessCidrs;
/**
* @return List of security group IDs
*
*/
private List securityGroupIds;
/**
* @return List of subnet IDs
*
*/
private List subnetIds;
/**
* @return The VPC associated with your cluster.
*
*/
private String vpcId;
private GetClusterVpcConfig() {}
/**
* @return The cluster security group that was created by Amazon EKS for the cluster.
*
*/
public String clusterSecurityGroupId() {
return this.clusterSecurityGroupId;
}
/**
* @return Indicates whether or not the Amazon EKS private API server endpoint is enabled.
*
*/
public Boolean endpointPrivateAccess() {
return this.endpointPrivateAccess;
}
/**
* @return Indicates whether or not the Amazon EKS public API server endpoint is enabled.
*
*/
public Boolean endpointPublicAccess() {
return this.endpointPublicAccess;
}
/**
* @return List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint.
*
*/
public List publicAccessCidrs() {
return this.publicAccessCidrs;
}
/**
* @return List of security group IDs
*
*/
public List securityGroupIds() {
return this.securityGroupIds;
}
/**
* @return List of subnet IDs
*
*/
public List subnetIds() {
return this.subnetIds;
}
/**
* @return The VPC associated with your cluster.
*
*/
public String vpcId() {
return this.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetClusterVpcConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String clusterSecurityGroupId;
private Boolean endpointPrivateAccess;
private Boolean endpointPublicAccess;
private List publicAccessCidrs;
private List securityGroupIds;
private List subnetIds;
private String vpcId;
public Builder() {}
public Builder(GetClusterVpcConfig defaults) {
Objects.requireNonNull(defaults);
this.clusterSecurityGroupId = defaults.clusterSecurityGroupId;
this.endpointPrivateAccess = defaults.endpointPrivateAccess;
this.endpointPublicAccess = defaults.endpointPublicAccess;
this.publicAccessCidrs = defaults.publicAccessCidrs;
this.securityGroupIds = defaults.securityGroupIds;
this.subnetIds = defaults.subnetIds;
this.vpcId = defaults.vpcId;
}
@CustomType.Setter
public Builder clusterSecurityGroupId(String clusterSecurityGroupId) {
if (clusterSecurityGroupId == null) {
throw new MissingRequiredPropertyException("GetClusterVpcConfig", "clusterSecurityGroupId");
}
this.clusterSecurityGroupId = clusterSecurityGroupId;
return this;
}
@CustomType.Setter
public Builder endpointPrivateAccess(Boolean endpointPrivateAccess) {
if (endpointPrivateAccess == null) {
throw new MissingRequiredPropertyException("GetClusterVpcConfig", "endpointPrivateAccess");
}
this.endpointPrivateAccess = endpointPrivateAccess;
return this;
}
@CustomType.Setter
public Builder endpointPublicAccess(Boolean endpointPublicAccess) {
if (endpointPublicAccess == null) {
throw new MissingRequiredPropertyException("GetClusterVpcConfig", "endpointPublicAccess");
}
this.endpointPublicAccess = endpointPublicAccess;
return this;
}
@CustomType.Setter
public Builder publicAccessCidrs(List publicAccessCidrs) {
if (publicAccessCidrs == null) {
throw new MissingRequiredPropertyException("GetClusterVpcConfig", "publicAccessCidrs");
}
this.publicAccessCidrs = publicAccessCidrs;
return this;
}
public Builder publicAccessCidrs(String... publicAccessCidrs) {
return publicAccessCidrs(List.of(publicAccessCidrs));
}
@CustomType.Setter
public Builder securityGroupIds(List securityGroupIds) {
if (securityGroupIds == null) {
throw new MissingRequiredPropertyException("GetClusterVpcConfig", "securityGroupIds");
}
this.securityGroupIds = securityGroupIds;
return this;
}
public Builder securityGroupIds(String... securityGroupIds) {
return securityGroupIds(List.of(securityGroupIds));
}
@CustomType.Setter
public Builder subnetIds(List subnetIds) {
if (subnetIds == null) {
throw new MissingRequiredPropertyException("GetClusterVpcConfig", "subnetIds");
}
this.subnetIds = subnetIds;
return this;
}
public Builder subnetIds(String... subnetIds) {
return subnetIds(List.of(subnetIds));
}
@CustomType.Setter
public Builder vpcId(String vpcId) {
if (vpcId == null) {
throw new MissingRequiredPropertyException("GetClusterVpcConfig", "vpcId");
}
this.vpcId = vpcId;
return this;
}
public GetClusterVpcConfig build() {
final var _resultValue = new GetClusterVpcConfig();
_resultValue.clusterSecurityGroupId = clusterSecurityGroupId;
_resultValue.endpointPrivateAccess = endpointPrivateAccess;
_resultValue.endpointPublicAccess = endpointPublicAccess;
_resultValue.publicAccessCidrs = publicAccessCidrs;
_resultValue.securityGroupIds = securityGroupIds;
_resultValue.subnetIds = subnetIds;
_resultValue.vpcId = vpcId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy