Class KubectlProvider
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Stack
software.amazon.awscdk.core.NestedStack
software.amazon.awscdk.services.eks.KubectlProvider
- All Implemented Interfaces:
IConstruct,IDependable,ITaggable,IKubectlProvider,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.613Z")
@Stability(Stable)
public class KubectlProvider
extends NestedStack
implements IKubectlProvider
Implementation of Kubectl Lambda.
Example:
IRole handlerRole = Role.fromRoleArn(this, "HandlerRole", "arn:aws:iam::123456789012:role/lambda-role");
IKubectlProvider kubectlProvider = KubectlProvider.fromKubectlProviderAttributes(this, "KubectlProvider", KubectlProviderAttributes.builder()
.functionArn("arn:aws:lambda:us-east-2:123456789012:function:my-function:1")
.kubectlRoleArn("arn:aws:iam::123456789012:role/kubectl-role")
.handlerRole(handlerRole)
.build());
ICluster cluster = Cluster.fromClusterAttributes(this, "Cluster", ClusterAttributes.builder()
.clusterName("cluster")
.kubectlProvider(kubectlProvider)
.build());
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.eks.IKubectlProvider
IKubectlProvider.Jsii$Default, IKubectlProvider.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedKubectlProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedKubectlProvider(software.amazon.jsii.JsiiObjectRef objRef) KubectlProvider(software.constructs.Construct scope, String id, KubectlProviderProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IKubectlProviderfromKubectlProviderAttributes(software.constructs.Construct scope, String id, KubectlProviderAttributes attrs) Import an existing provider.The IAM execution role of the handler.static IKubectlProvidergetOrCreate(software.constructs.Construct scope, ICluster cluster) Take existing provider or create new based on cluster.The IAM role to assume in order to perform kubectl operations against this cluster.The custom resource provider's service token.Methods inherited from class software.amazon.awscdk.core.NestedStack
getNestedStackResource, getStackId, getStackName, getTemplateFile, isNestedStack, setParameterMethods inherited from class software.amazon.awscdk.core.Stack
addDependency, addDependency, addDockerImageAsset, addFileAsset, addTransform, allocateLogicalId, exportValue, exportValue, formatArn, getAccount, getArtifactId, getAvailabilityZones, getBundlingRequired, getDependencies, getEnvironment, getLogicalId, getNested, getNestedStackParent, getNotificationArns, getParentStack, getPartition, getRegion, getSynthesizer, getTags, getTemplateOptions, getTerminationProtection, getUrlSuffix, isStack, of, parseArn, parseArn, parseArn, prepareCrossReference, regionalFact, regionalFact, renameLogicalId, reportMissingContext, reportMissingContextKey, resolve, splitArn, toJsonString, toJsonStringMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
KubectlProvider
protected KubectlProvider(software.amazon.jsii.JsiiObjectRef objRef) -
KubectlProvider
protected KubectlProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
KubectlProvider
@Stability(Stable) public KubectlProvider(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull KubectlProviderProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromKubectlProviderAttributes
@Stability(Stable) @NotNull public static IKubectlProvider fromKubectlProviderAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull KubectlProviderAttributes attrs) Import an existing provider.- Parameters:
scope- Construct. This parameter is required.id- an id of resource. This parameter is required.attrs- attributes for the provider. This parameter is required.
-
getOrCreate
@Stability(Stable) @NotNull public static IKubectlProvider getOrCreate(@NotNull software.constructs.Construct scope, @NotNull ICluster cluster) Take existing provider or create new based on cluster.- Parameters:
scope- Construct. This parameter is required.cluster- k8s cluster. This parameter is required.
-
getHandlerRole
The IAM execution role of the handler.- Specified by:
getHandlerRolein interfaceIKubectlProvider
-
getRoleArn
The IAM role to assume in order to perform kubectl operations against this cluster.- Specified by:
getRoleArnin interfaceIKubectlProvider
-
getServiceToken
The custom resource provider's service token.- Specified by:
getServiceTokenin interfaceIKubectlProvider
-