@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:11.006Z") @Stability(value=Experimental) public class Application extends Resource implements IApplication
Example:
Bucket bucket;
Application flinkApp = Application.Builder.create(this, "Application")
.propertyGroups(PropertyGroups.builder()
.FlinkApplicationProperties(Map.of(
"inputStreamName", "my-input-kinesis-stream",
"outputStreamName", "my-output-kinesis-stream"))
.build())
// ...
.runtime(Runtime.FLINK_1_13)
.code(ApplicationCode.fromBucket(bucket, "my-app.jar"))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
Application.Builder
(experimental) A fluent builder for
Application. |
software.amazon.jsii.JsiiObject.InitializationModeIApplication.Jsii$Default, IApplication.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Application(software.constructs.Construct scope,
String id,
ApplicationProps props) |
protected |
Application(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Application(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
addToRolePolicy(PolicyStatement policyStatement)
(experimental) Implement the convenience
IApplication.addToPrincipalPolicy method. |
static IApplication |
fromApplicationArn(software.constructs.Construct scope,
String id,
String applicationArn)
(experimental) Import an existing application defined outside of CDK code by applicationArn.
|
static IApplication |
fromApplicationName(software.constructs.Construct scope,
String id,
String applicationName)
(experimental) Import an existing Flink application defined outside of CDK code by applicationName.
|
String |
getApplicationArn()
(experimental) The application ARN.
|
String |
getApplicationName()
(experimental) The name of the Flink application.
|
IPrincipal |
getGrantPrincipal()
(experimental) The principal to grant permissions to.
|
IRole |
getRole()
(experimental) The application IAM role.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected Application(software.amazon.jsii.JsiiObjectRef objRef)
protected Application(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Application(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ApplicationProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static IApplication fromApplicationArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String applicationArn)
scope - This parameter is required.id - This parameter is required.applicationArn - This parameter is required.@Stability(value=Experimental) @NotNull public static IApplication fromApplicationName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String applicationName)
scope - This parameter is required.id - This parameter is required.applicationName - This parameter is required.@Stability(value=Experimental) @NotNull public Boolean addToRolePolicy(@NotNull PolicyStatement policyStatement)
IApplication.addToPrincipalPolicy method.
addToRolePolicy in interface IApplicationpolicyStatement - This parameter is required.@Stability(value=Experimental) @NotNull public String getApplicationArn()
getApplicationArn in interface IApplication@Stability(value=Experimental) @NotNull public String getApplicationName()
getApplicationName in interface IApplication@Stability(value=Experimental) @NotNull public IPrincipal getGrantPrincipal()
getGrantPrincipal in interface IGrantable@Stability(value=Experimental) @Nullable public IRole getRole()
getRole in interface IApplicationCopyright © 2022. All rights reserved.