com.pulumi.kubernetes.certificates.v1alpha1.outputs.ClusterTrustBundleSpec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes resources.
// *** 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.kubernetes.certificates.v1alpha1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ClusterTrustBundleSpec {
/**
* @return signerName indicates the associated signer, if any.
*
* In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=<the signer name> verb=attest.
*
* If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.
*
* If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.
*
* List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.
*
*/
private @Nullable String signerName;
/**
* @return trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.
*
* The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.
*
* Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.
*
*/
private String trustBundle;
private ClusterTrustBundleSpec() {}
/**
* @return signerName indicates the associated signer, if any.
*
* In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=<the signer name> verb=attest.
*
* If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.
*
* If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.
*
* List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.
*
*/
public Optional signerName() {
return Optional.ofNullable(this.signerName);
}
/**
* @return trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.
*
* The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.
*
* Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.
*
*/
public String trustBundle() {
return this.trustBundle;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ClusterTrustBundleSpec defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String signerName;
private String trustBundle;
public Builder() {}
public Builder(ClusterTrustBundleSpec defaults) {
Objects.requireNonNull(defaults);
this.signerName = defaults.signerName;
this.trustBundle = defaults.trustBundle;
}
@CustomType.Setter
public Builder signerName(@Nullable String signerName) {
this.signerName = signerName;
return this;
}
@CustomType.Setter
public Builder trustBundle(String trustBundle) {
if (trustBundle == null) {
throw new MissingRequiredPropertyException("ClusterTrustBundleSpec", "trustBundle");
}
this.trustBundle = trustBundle;
return this;
}
public ClusterTrustBundleSpec build() {
final var _resultValue = new ClusterTrustBundleSpec();
_resultValue.signerName = signerName;
_resultValue.trustBundle = trustBundle;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy