@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.950Z") @Stability(value=Stable) public interface KubectlProviderAttributes extends software.amazon.jsii.JsiiSerializable
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 | Interface and Description |
|---|---|
static class |
KubectlProviderAttributes.Builder
A builder for
KubectlProviderAttributes |
static class |
KubectlProviderAttributes.Jsii$Proxy
An implementation for
KubectlProviderAttributes |
| Modifier and Type | Method and Description |
|---|---|
static KubectlProviderAttributes.Builder |
builder() |
String |
getFunctionArn()
The kubectl provider lambda arn.
|
IRole |
getHandlerRole()
The IAM execution role of the handler.
|
String |
getKubectlRoleArn()
The IAM role to assume in order to perform kubectl operations against this cluster.
|
@Stability(value=Stable) @NotNull String getFunctionArn()
@Stability(value=Stable) @NotNull IRole getHandlerRole()
This role must be able to assume kubectlRoleArn
@Stability(value=Stable) @NotNull String getKubectlRoleArn()
@Stability(value=Stable) static KubectlProviderAttributes.Builder builder()
KubectlProviderAttributes.Builder of KubectlProviderAttributesCopyright © 2022. All rights reserved.