Interface KubectlProviderAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
KubectlProviderAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:38.288Z")
@Stability(Stable)
public interface KubectlProviderAttributes
extends software.amazon.jsii.JsiiSerializable
Kubectl Provider Attributes.
Example:
IRole handlerRole = Role.fromRoleArn(this, "HandlerRole", "arn:aws:iam::123456789012:role/lambda-role");
// get the serviceToken from the custom resource provider
String functionArn = Function.fromFunctionName(this, "ProviderOnEventFunc", "ProviderframeworkonEvent-XXX").getFunctionArn();
IKubectlProvider kubectlProvider = KubectlProvider.fromKubectlProviderAttributes(this, "KubectlProvider", KubectlProviderAttributes.builder()
.functionArn(functionArn)
.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 ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forKubectlProviderAttributesstatic final classAn implementation forKubectlProviderAttributes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The custom resource provider's service token.The IAM execution role of the handler.The IAM role to assume in order to perform kubectl operations against this cluster.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFunctionArn
The custom resource provider's service token. -
getHandlerRole
The IAM execution role of the handler.This role must be able to assume kubectlRoleArn
-
getKubectlRoleArn
The IAM role to assume in order to perform kubectl operations against this cluster. -
builder
- Returns:
- a
KubectlProviderAttributes.BuilderofKubectlProviderAttributes
-