@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:06.345Z") @Stability(value=Stable) public class CfnCluster extends CfnResource implements IInspectable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.eks.*;
Object provider;
CfnCluster cfnCluster = CfnCluster.Builder.create(this, "MyCfnCluster")
.resourcesVpcConfig(ResourcesVpcConfigProperty.builder()
.subnetIds(List.of("subnetIds"))
// the properties below are optional
.endpointPrivateAccess(false)
.endpointPublicAccess(false)
.publicAccessCidrs(List.of("publicAccessCidrs"))
.securityGroupIds(List.of("securityGroupIds"))
.build())
.roleArn("roleArn")
// the properties below are optional
.encryptionConfig(List.of(EncryptionConfigProperty.builder()
.provider(provider)
.resources(List.of("resources"))
.build()))
.kubernetesNetworkConfig(KubernetesNetworkConfigProperty.builder()
.serviceIpv4Cidr("serviceIpv4Cidr")
.build())
.logging(LoggingProperty.builder()
.clusterLogging(ClusterLoggingProperty.builder()
.enabledTypes(List.of(LoggingTypeConfigProperty.builder()
.type("type")
.build()))
.build())
.build())
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.version("version")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnCluster.Builder
A fluent builder for
CfnCluster. |
static interface |
CfnCluster.ClusterLoggingProperty
Example:
|
static interface |
CfnCluster.EncryptionConfigProperty
Example:
|
static interface |
CfnCluster.KubernetesNetworkConfigProperty
Example:
|
static interface |
CfnCluster.LoggingProperty
Example:
|
static interface |
CfnCluster.LoggingTypeConfigProperty
Example:
|
static interface |
CfnCluster.ResourcesVpcConfigProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnCluster(software.constructs.Construct scope,
String id,
CfnClusterProps props)
Create a new `AWS::EKS::Cluster`.
|
protected |
CfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnCluster(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn() |
String |
getAttrCertificateAuthorityData() |
String |
getAttrClusterSecurityGroupId() |
String |
getAttrEncryptionConfigKeyArn() |
String |
getAttrEndpoint() |
String |
getAttrOpenIdConnectIssuerUrl() |
protected Map<String,Object> |
getCfnProperties() |
Object |
getEncryptionConfig()
`AWS::EKS::Cluster.EncryptionConfig`.
|
Object |
getKubernetesNetworkConfig()
`AWS::EKS::Cluster.KubernetesNetworkConfig`.
|
Object |
getLogging()
`AWS::EKS::Cluster.Logging`.
|
String |
getName()
`AWS::EKS::Cluster.Name`.
|
Object |
getResourcesVpcConfig()
`AWS::EKS::Cluster.ResourcesVpcConfig`.
|
String |
getRoleArn()
`AWS::EKS::Cluster.RoleArn`.
|
TagManager |
getTags()
`AWS::EKS::Cluster.Tags`.
|
String |
getVersion()
`AWS::EKS::Cluster.Version`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setEncryptionConfig(IResolvable value)
`AWS::EKS::Cluster.EncryptionConfig`.
|
void |
setEncryptionConfig(List<Object> value)
`AWS::EKS::Cluster.EncryptionConfig`.
|
void |
setKubernetesNetworkConfig(CfnCluster.KubernetesNetworkConfigProperty value)
`AWS::EKS::Cluster.KubernetesNetworkConfig`.
|
void |
setKubernetesNetworkConfig(IResolvable value)
`AWS::EKS::Cluster.KubernetesNetworkConfig`.
|
void |
setLogging(CfnCluster.LoggingProperty value)
`AWS::EKS::Cluster.Logging`.
|
void |
setLogging(IResolvable value)
`AWS::EKS::Cluster.Logging`.
|
void |
setName(String value)
`AWS::EKS::Cluster.Name`.
|
void |
setResourcesVpcConfig(CfnCluster.ResourcesVpcConfigProperty value)
`AWS::EKS::Cluster.ResourcesVpcConfig`.
|
void |
setResourcesVpcConfig(IResolvable value)
`AWS::EKS::Cluster.ResourcesVpcConfig`.
|
void |
setRoleArn(String value)
`AWS::EKS::Cluster.RoleArn`.
|
void |
setVersion(String value)
`AWS::EKS::Cluster.Version`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnCluster(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnCluster(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnClusterProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrCertificateAuthorityData()
@Stability(value=Stable) @NotNull public String getAttrClusterSecurityGroupId()
@Stability(value=Stable) @NotNull public String getAttrEncryptionConfigKeyArn()
@Stability(value=Stable) @NotNull public String getAttrEndpoint()
@Stability(value=Stable) @NotNull public String getAttrOpenIdConnectIssuerUrl()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public Object getEncryptionConfig()
@Stability(value=Stable)
public void setEncryptionConfig(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setEncryptionConfig(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getKubernetesNetworkConfig()
@Stability(value=Stable)
public void setKubernetesNetworkConfig(@Nullable
CfnCluster.KubernetesNetworkConfigProperty value)
@Stability(value=Stable)
public void setKubernetesNetworkConfig(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getLogging()
@Stability(value=Stable)
public void setLogging(@Nullable
CfnCluster.LoggingProperty value)
@Stability(value=Stable)
public void setLogging(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getName()
@Stability(value=Stable)
public void setName(@Nullable
String value)
@Stability(value=Stable) @NotNull public Object getResourcesVpcConfig()
@Stability(value=Stable)
public void setResourcesVpcConfig(@NotNull
CfnCluster.ResourcesVpcConfigProperty value)
@Stability(value=Stable)
public void setResourcesVpcConfig(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public String getRoleArn()
@Stability(value=Stable)
public void setRoleArn(@NotNull
String value)
@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @Nullable public String getVersion()
@Stability(value=Stable)
public void setVersion(@Nullable
String value)
Copyright © 2021. All rights reserved.