software.amazon.awscdk.services.eks.KubernetesResource Maven / Gradle / Ivy
package software.amazon.awscdk.services.eks;
/**
* Represents a resource within the Kubernetes system.
*
* Alternatively, you can use `cluster.addResource(resource[, resource, ...])`
* to define resources on this cluster.
*
* Applies/deletes the resources using `kubectl` in sync with the resource.
*
* EXPERIMENTAL
*/
@javax.annotation.Generated(value = "jsii-pacmak/0.20.6 (build 17f281e)", date = "2019-11-19T17:18:14.394Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.eks.$Module.class, fqn = "@aws-cdk/aws-eks.KubernetesResource")
public class KubernetesResource extends software.amazon.awscdk.core.Construct {
protected KubernetesResource(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected KubernetesResource(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
static {
RESOURCE_TYPE = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.eks.KubernetesResource.class, "RESOURCE_TYPE", java.lang.String.class);
}
/**
* EXPERIMENTAL
*
* @param scope This parameter is required.
* @param id This parameter is required.
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public KubernetesResource(final software.amazon.awscdk.core.Construct scope, final java.lang.String id, final software.amazon.awscdk.services.eks.KubernetesResourceProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* The CloudFormation reosurce type.
*
* EXPERIMENTAL
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public final static java.lang.String RESOURCE_TYPE;
/**
* A fluent builder for {@link software.amazon.awscdk.services.eks.KubernetesResource}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder {
/**
* EXPERIMENTAL
*
* @return a new instance of {@link Builder}.
* @param scope This parameter is required.
* @param id This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static Builder create(final software.amazon.awscdk.core.Construct scope, final java.lang.String id) {
return new Builder(scope, id);
}
private final software.amazon.awscdk.core.Construct scope;
private final java.lang.String id;
private final software.amazon.awscdk.services.eks.KubernetesResourceProps.Builder props;
private Builder(final software.amazon.awscdk.core.Construct scope, final java.lang.String id) {
this.scope = scope;
this.id = id;
this.props = new software.amazon.awscdk.services.eks.KubernetesResourceProps.Builder();
}
/**
* EXPERIMENTAL
*
* @return {@code this}
* @param cluster The EKS cluster to apply this configuration to. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder cluster(final software.amazon.awscdk.services.eks.Cluster cluster) {
this.props.cluster(cluster);
return this;
}
/**
* EXPERIMENTAL
*
* @return {@code this}
* @param manifest The resource manifest. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder manifest(final java.util.List manifest) {
this.props.manifest(manifest);
return this;
}
/**
* @returns a newly built instance of {@link software.amazon.awscdk.services.eks.KubernetesResource}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public software.amazon.awscdk.services.eks.KubernetesResource build() {
return new software.amazon.awscdk.services.eks.KubernetesResource(
this.scope,
this.id,
this.props.build()
);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy