aiven.FlinkApplicationDeployment
Explore with Pulumi AI
The Flink Application Deployment resource allows the creation and management of Aiven Flink Application Deployments.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const deployment = new aiven.FlinkApplicationDeployment("deployment", {
project: foo.project,
serviceName: fooAivenFlink.serviceName,
applicationId: fooApp.applicationId,
versionId: fooAppVersion.applicationVersionId,
});
import pulumi
import pulumi_aiven as aiven
deployment = aiven.FlinkApplicationDeployment("deployment",
project=foo["project"],
service_name=foo_aiven_flink["serviceName"],
application_id=foo_app["applicationId"],
version_id=foo_app_version["applicationVersionId"])
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.NewFlinkApplicationDeployment(ctx, "deployment", &aiven.FlinkApplicationDeploymentArgs{
Project: pulumi.Any(foo.Project),
ServiceName: pulumi.Any(fooAivenFlink.ServiceName),
ApplicationId: pulumi.Any(fooApp.ApplicationId),
VersionId: pulumi.Any(fooAppVersion.ApplicationVersionId),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() =>
{
var deployment = new Aiven.FlinkApplicationDeployment("deployment", new()
{
Project = foo.Project,
ServiceName = fooAivenFlink.ServiceName,
ApplicationId = fooApp.ApplicationId,
VersionId = fooAppVersion.ApplicationVersionId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.FlinkApplicationDeployment;
import com.pulumi.aiven.FlinkApplicationDeploymentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var deployment = new FlinkApplicationDeployment("deployment", FlinkApplicationDeploymentArgs.builder()
.project(foo.project())
.serviceName(fooAivenFlink.serviceName())
.applicationId(fooApp.applicationId())
.versionId(fooAppVersion.applicationVersionId())
.build());
}
}
resources:
deployment:
type: aiven:FlinkApplicationDeployment
properties:
project: ${foo.project}
serviceName: ${fooAivenFlink.serviceName}
applicationId: ${fooApp.applicationId}
versionId: ${fooAppVersion.applicationVersionId}
Create FlinkApplicationDeployment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FlinkApplicationDeployment(name: string, args: FlinkApplicationDeploymentArgs, opts?: CustomResourceOptions);
@overload
def FlinkApplicationDeployment(resource_name: str,
args: FlinkApplicationDeploymentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FlinkApplicationDeployment(resource_name: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
project: Optional[str] = None,
service_name: Optional[str] = None,
version_id: Optional[str] = None,
parallelism: Optional[int] = None,
restart_enabled: Optional[bool] = None,
starting_savepoint: Optional[str] = None)
func NewFlinkApplicationDeployment(ctx *Context, name string, args FlinkApplicationDeploymentArgs, opts ...ResourceOption) (*FlinkApplicationDeployment, error)
public FlinkApplicationDeployment(string name, FlinkApplicationDeploymentArgs args, CustomResourceOptions? opts = null)
public FlinkApplicationDeployment(String name, FlinkApplicationDeploymentArgs args)
public FlinkApplicationDeployment(String name, FlinkApplicationDeploymentArgs args, CustomResourceOptions options)
type: aiven:FlinkApplicationDeployment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FlinkApplicationDeploymentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FlinkApplicationDeploymentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FlinkApplicationDeploymentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FlinkApplicationDeploymentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FlinkApplicationDeploymentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var flinkApplicationDeploymentResource = new Aiven.FlinkApplicationDeployment("flinkApplicationDeploymentResource", new()
{
ApplicationId = "string",
Project = "string",
ServiceName = "string",
VersionId = "string",
Parallelism = 0,
RestartEnabled = false,
StartingSavepoint = "string",
});
example, err := aiven.NewFlinkApplicationDeployment(ctx, "flinkApplicationDeploymentResource", &aiven.FlinkApplicationDeploymentArgs{
ApplicationId: pulumi.String("string"),
Project: pulumi.String("string"),
ServiceName: pulumi.String("string"),
VersionId: pulumi.String("string"),
Parallelism: pulumi.Int(0),
RestartEnabled: pulumi.Bool(false),
StartingSavepoint: pulumi.String("string"),
})
var flinkApplicationDeploymentResource = new FlinkApplicationDeployment("flinkApplicationDeploymentResource", FlinkApplicationDeploymentArgs.builder()
.applicationId("string")
.project("string")
.serviceName("string")
.versionId("string")
.parallelism(0)
.restartEnabled(false)
.startingSavepoint("string")
.build());
flink_application_deployment_resource = aiven.FlinkApplicationDeployment("flinkApplicationDeploymentResource",
application_id="string",
project="string",
service_name="string",
version_id="string",
parallelism=0,
restart_enabled=False,
starting_savepoint="string")
const flinkApplicationDeploymentResource = new aiven.FlinkApplicationDeployment("flinkApplicationDeploymentResource", {
applicationId: "string",
project: "string",
serviceName: "string",
versionId: "string",
parallelism: 0,
restartEnabled: false,
startingSavepoint: "string",
});
type: aiven:FlinkApplicationDeployment
properties:
applicationId: string
parallelism: 0
project: string
restartEnabled: false
serviceName: string
startingSavepoint: string
versionId: string
FlinkApplicationDeployment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The FlinkApplicationDeployment resource accepts the following input properties:
- Application
Id string - Application ID
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Version
Id string - ApplicationVersion ID
- Parallelism int
- Flink Job parallelism
- Restart
Enabled bool - Specifies whether a Flink Job is restarted in case it fails
- Starting
Savepoint string - Job savepoint
- Application
Id string - Application ID
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Version
Id string - ApplicationVersion ID
- Parallelism int
- Flink Job parallelism
- Restart
Enabled bool - Specifies whether a Flink Job is restarted in case it fails
- Starting
Savepoint string - Job savepoint
- application
Id String - Application ID
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service
Name String - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- version
Id String - ApplicationVersion ID
- parallelism Integer
- Flink Job parallelism
- restart
Enabled Boolean - Specifies whether a Flink Job is restarted in case it fails
- starting
Savepoint String - Job savepoint
- application
Id string - Application ID
- project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- version
Id string - ApplicationVersion ID
- parallelism number
- Flink Job parallelism
- restart
Enabled boolean - Specifies whether a Flink Job is restarted in case it fails
- starting
Savepoint string - Job savepoint
- application_
id str - Application ID
- project str
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service_
name str - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- version_
id str - ApplicationVersion ID
- parallelism int
- Flink Job parallelism
- restart_
enabled bool - Specifies whether a Flink Job is restarted in case it fails
- starting_
savepoint str - Job savepoint
- application
Id String - Application ID
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service
Name String - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- version
Id String - ApplicationVersion ID
- parallelism Number
- Flink Job parallelism
- restart
Enabled Boolean - Specifies whether a Flink Job is restarted in case it fails
- starting
Savepoint String - Job savepoint
Outputs
All input properties are implicitly available as output properties. Additionally, the FlinkApplicationDeployment resource produces the following output properties:
- created_
at str - Application deployment creation time
- created_
by str - Application deployment creator
- id str
- The provider-assigned unique ID for this managed resource.
Look up Existing FlinkApplicationDeployment Resource
Get an existing FlinkApplicationDeployment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FlinkApplicationDeploymentState, opts?: CustomResourceOptions): FlinkApplicationDeployment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
created_at: Optional[str] = None,
created_by: Optional[str] = None,
parallelism: Optional[int] = None,
project: Optional[str] = None,
restart_enabled: Optional[bool] = None,
service_name: Optional[str] = None,
starting_savepoint: Optional[str] = None,
version_id: Optional[str] = None) -> FlinkApplicationDeployment
func GetFlinkApplicationDeployment(ctx *Context, name string, id IDInput, state *FlinkApplicationDeploymentState, opts ...ResourceOption) (*FlinkApplicationDeployment, error)
public static FlinkApplicationDeployment Get(string name, Input<string> id, FlinkApplicationDeploymentState? state, CustomResourceOptions? opts = null)
public static FlinkApplicationDeployment get(String name, Output<String> id, FlinkApplicationDeploymentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Application
Id string - Application ID
- Created
At string - Application deployment creation time
- Created
By string - Application deployment creator
- Parallelism int
- Flink Job parallelism
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Restart
Enabled bool - Specifies whether a Flink Job is restarted in case it fails
- Service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Starting
Savepoint string - Job savepoint
- Version
Id string - ApplicationVersion ID
- Application
Id string - Application ID
- Created
At string - Application deployment creation time
- Created
By string - Application deployment creator
- Parallelism int
- Flink Job parallelism
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Restart
Enabled bool - Specifies whether a Flink Job is restarted in case it fails
- Service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Starting
Savepoint string - Job savepoint
- Version
Id string - ApplicationVersion ID
- application
Id String - Application ID
- created
At String - Application deployment creation time
- created
By String - Application deployment creator
- parallelism Integer
- Flink Job parallelism
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- restart
Enabled Boolean - Specifies whether a Flink Job is restarted in case it fails
- service
Name String - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- starting
Savepoint String - Job savepoint
- version
Id String - ApplicationVersion ID
- application
Id string - Application ID
- created
At string - Application deployment creation time
- created
By string - Application deployment creator
- parallelism number
- Flink Job parallelism
- project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- restart
Enabled boolean - Specifies whether a Flink Job is restarted in case it fails
- service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- starting
Savepoint string - Job savepoint
- version
Id string - ApplicationVersion ID
- application_
id str - Application ID
- created_
at str - Application deployment creation time
- created_
by str - Application deployment creator
- parallelism int
- Flink Job parallelism
- project str
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- restart_
enabled bool - Specifies whether a Flink Job is restarted in case it fails
- service_
name str - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- starting_
savepoint str - Job savepoint
- version_
id str - ApplicationVersion ID
- application
Id String - Application ID
- created
At String - Application deployment creation time
- created
By String - Application deployment creator
- parallelism Number
- Flink Job parallelism
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- restart
Enabled Boolean - Specifies whether a Flink Job is restarted in case it fails
- service
Name String - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- starting
Savepoint String - Job savepoint
- version
Id String - ApplicationVersion ID
Import
$ pulumi import aiven:index/flinkApplicationDeployment:FlinkApplicationDeployment foo_deploy PROJECT/SERVICE/APPLICATION_ID/APPLICATION_VERSION_ID/DEPLOYMENT_ID
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aiven
Terraform Provider.