Interface KubectlProviderAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
KubectlProviderAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.109.0 (build c221850)",
date="2025-03-14T03:24:58.106Z")
@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 class
A builder forKubectlProviderAttributes
static final class
An 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.Builder
ofKubectlProviderAttributes
-