@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.950Z") @Stability(value=Stable) public class KubectlProvider extends NestedStack implements IKubectlProvider
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());
| Modifier and Type | Class and Description |
|---|---|
static class |
KubectlProvider.Builder
A fluent builder for
KubectlProvider. |
software.amazon.jsii.JsiiObject.InitializationModeIKubectlProvider.Jsii$Default, IKubectlProvider.Jsii$ProxyITaggable.Jsii$Default, ITaggable.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
KubectlProvider(software.constructs.Construct scope,
String id,
KubectlProviderProps props) |
protected |
KubectlProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
KubectlProvider(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IKubectlProvider |
fromKubectlProviderAttributes(software.constructs.Construct scope,
String id,
KubectlProviderAttributes attrs)
Import an existing provider.
|
IRole |
getHandlerRole()
The IAM execution role of the handler.
|
static IKubectlProvider |
getOrCreate(software.constructs.Construct scope,
ICluster cluster)
Take existing provider or create new based on cluster.
|
String |
getRoleArn()
The IAM role to assume in order to perform kubectl operations against this cluster.
|
String |
getServiceToken()
The custom resource provider's service token.
|
getNestedStackResource, getStackId, getStackName, getTemplateFile, isNestedStack, setParameteraddDependency, addDependency, addTransform, allocateLogicalId, exportValue, exportValue, formatArn, getAccount, getArtifactId, getAvailabilityZones, getBundlingRequired, getDependencies, getEnvironment, getLogicalId, getNested, getNestedStackParent, getNotificationArns, getPartition, getRegion, getSynthesizer, getTags, getTemplateOptions, getTerminationProtection, getUrlSuffix, isStack, of, regionalFact, regionalFact, renameLogicalId, reportMissingContextKey, resolve, splitArn, toJsonString, toJsonStringjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected KubectlProvider(software.amazon.jsii.JsiiObjectRef objRef)
protected KubectlProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public KubectlProvider(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
KubectlProviderProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static IKubectlProvider fromKubectlProviderAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull KubectlProviderAttributes attrs)
scope - Construct. This parameter is required.id - an id of resource. This parameter is required.attrs - attributes for the provider. This parameter is required.@Stability(value=Stable) @NotNull public static IKubectlProvider getOrCreate(@NotNull software.constructs.Construct scope, @NotNull ICluster cluster)
scope - Construct. This parameter is required.cluster - k8s cluster. This parameter is required.@Stability(value=Stable) @NotNull public IRole getHandlerRole()
getHandlerRole in interface IKubectlProvider@Stability(value=Stable) @NotNull public String getRoleArn()
getRoleArn in interface IKubectlProvider@Stability(value=Stable) @NotNull public String getServiceToken()
getServiceToken in interface IKubectlProviderCopyright © 2022. All rights reserved.