1. Packages
  2. AWS
  3. API Docs
  4. m2
  5. Deployment
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.m2.Deployment

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Resource for managing an AWS Mainframe Modernization Deployment.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const test = new aws.m2.Deployment("test", {
        environmentId: "01234567890abcdef012345678",
        applicationId: "34567890abcdef012345678012",
        applicationVersion: 1,
        start: true,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    test = aws.m2.Deployment("test",
        environment_id="01234567890abcdef012345678",
        application_id="34567890abcdef012345678012",
        application_version=1,
        start=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/m2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := m2.NewDeployment(ctx, "test", &m2.DeploymentArgs{
    			EnvironmentId:      pulumi.String("01234567890abcdef012345678"),
    			ApplicationId:      pulumi.String("34567890abcdef012345678012"),
    			ApplicationVersion: pulumi.Int(1),
    			Start:              pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Aws.M2.Deployment("test", new()
        {
            EnvironmentId = "01234567890abcdef012345678",
            ApplicationId = "34567890abcdef012345678012",
            ApplicationVersion = 1,
            Start = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.m2.Deployment;
    import com.pulumi.aws.m2.DeploymentArgs;
    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 test = new Deployment("test", DeploymentArgs.builder()
                .environmentId("01234567890abcdef012345678")
                .applicationId("34567890abcdef012345678012")
                .applicationVersion(1)
                .start(true)
                .build());
    
        }
    }
    
    resources:
      test:
        type: aws:m2:Deployment
        properties:
          environmentId: 01234567890abcdef012345678
          applicationId: 34567890abcdef012345678012
          applicationVersion: 1
          start: true
    

    Create Deployment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Deployment(name: string, args: DeploymentArgs, opts?: CustomResourceOptions);
    @overload
    def Deployment(resource_name: str,
                   args: DeploymentArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Deployment(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   application_id: Optional[str] = None,
                   application_version: Optional[int] = None,
                   environment_id: Optional[str] = None,
                   start: Optional[bool] = None,
                   force_stop: Optional[bool] = None,
                   timeouts: Optional[DeploymentTimeoutsArgs] = None)
    func NewDeployment(ctx *Context, name string, args DeploymentArgs, opts ...ResourceOption) (*Deployment, error)
    public Deployment(string name, DeploymentArgs args, CustomResourceOptions? opts = null)
    public Deployment(String name, DeploymentArgs args)
    public Deployment(String name, DeploymentArgs args, CustomResourceOptions options)
    
    type: aws:m2:Deployment
    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 DeploymentArgs
    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 DeploymentArgs
    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 DeploymentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DeploymentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DeploymentArgs
    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 exampledeploymentResourceResourceFromM2deployment = new Aws.M2.Deployment("exampledeploymentResourceResourceFromM2deployment", new()
    {
        ApplicationId = "string",
        ApplicationVersion = 0,
        EnvironmentId = "string",
        Start = false,
        ForceStop = false,
        Timeouts = new Aws.M2.Inputs.DeploymentTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := m2.NewDeployment(ctx, "exampledeploymentResourceResourceFromM2deployment", &m2.DeploymentArgs{
    	ApplicationId:      pulumi.String("string"),
    	ApplicationVersion: pulumi.Int(0),
    	EnvironmentId:      pulumi.String("string"),
    	Start:              pulumi.Bool(false),
    	ForceStop:          pulumi.Bool(false),
    	Timeouts: &m2.DeploymentTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var exampledeploymentResourceResourceFromM2deployment = new Deployment("exampledeploymentResourceResourceFromM2deployment", DeploymentArgs.builder()
        .applicationId("string")
        .applicationVersion(0)
        .environmentId("string")
        .start(false)
        .forceStop(false)
        .timeouts(DeploymentTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    exampledeployment_resource_resource_from_m2deployment = aws.m2.Deployment("exampledeploymentResourceResourceFromM2deployment",
        application_id="string",
        application_version=0,
        environment_id="string",
        start=False,
        force_stop=False,
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const exampledeploymentResourceResourceFromM2deployment = new aws.m2.Deployment("exampledeploymentResourceResourceFromM2deployment", {
        applicationId: "string",
        applicationVersion: 0,
        environmentId: "string",
        start: false,
        forceStop: false,
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: aws:m2:Deployment
    properties:
        applicationId: string
        applicationVersion: 0
        environmentId: string
        forceStop: false
        start: false
        timeouts:
            create: string
            delete: string
            update: string
    

    Deployment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Deployment resource accepts the following input properties:

    ApplicationId string
    Application to deploy.
    ApplicationVersion int
    Version to application to deploy
    EnvironmentId string
    Environment to deploy application to.
    Start bool
    Start the application once deployed.
    ForceStop bool
    Timeouts DeploymentTimeouts
    ApplicationId string
    Application to deploy.
    ApplicationVersion int
    Version to application to deploy
    EnvironmentId string
    Environment to deploy application to.
    Start bool
    Start the application once deployed.
    ForceStop bool
    Timeouts DeploymentTimeoutsArgs
    applicationId String
    Application to deploy.
    applicationVersion Integer
    Version to application to deploy
    environmentId String
    Environment to deploy application to.
    start Boolean
    Start the application once deployed.
    forceStop Boolean
    timeouts DeploymentTimeouts
    applicationId string
    Application to deploy.
    applicationVersion number
    Version to application to deploy
    environmentId string
    Environment to deploy application to.
    start boolean
    Start the application once deployed.
    forceStop boolean
    timeouts DeploymentTimeouts
    application_id str
    Application to deploy.
    application_version int
    Version to application to deploy
    environment_id str
    Environment to deploy application to.
    start bool
    Start the application once deployed.
    force_stop bool
    timeouts DeploymentTimeoutsArgs
    applicationId String
    Application to deploy.
    applicationVersion Number
    Version to application to deploy
    environmentId String
    Environment to deploy application to.
    start Boolean
    Start the application once deployed.
    forceStop Boolean
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Deployment resource produces the following output properties:

    DeploymentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    DeploymentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    deploymentId String
    id String
    The provider-assigned unique ID for this managed resource.
    deploymentId string
    id string
    The provider-assigned unique ID for this managed resource.
    deployment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    deploymentId String
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Deployment Resource

    Get an existing Deployment 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?: DeploymentState, opts?: CustomResourceOptions): Deployment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            application_id: Optional[str] = None,
            application_version: Optional[int] = None,
            deployment_id: Optional[str] = None,
            environment_id: Optional[str] = None,
            force_stop: Optional[bool] = None,
            start: Optional[bool] = None,
            timeouts: Optional[DeploymentTimeoutsArgs] = None) -> Deployment
    func GetDeployment(ctx *Context, name string, id IDInput, state *DeploymentState, opts ...ResourceOption) (*Deployment, error)
    public static Deployment Get(string name, Input<string> id, DeploymentState? state, CustomResourceOptions? opts = null)
    public static Deployment get(String name, Output<String> id, DeploymentState 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.
    The following state arguments are supported:
    ApplicationId string
    Application to deploy.
    ApplicationVersion int
    Version to application to deploy
    DeploymentId string
    EnvironmentId string
    Environment to deploy application to.
    ForceStop bool
    Start bool
    Start the application once deployed.
    Timeouts DeploymentTimeouts
    ApplicationId string
    Application to deploy.
    ApplicationVersion int
    Version to application to deploy
    DeploymentId string
    EnvironmentId string
    Environment to deploy application to.
    ForceStop bool
    Start bool
    Start the application once deployed.
    Timeouts DeploymentTimeoutsArgs
    applicationId String
    Application to deploy.
    applicationVersion Integer
    Version to application to deploy
    deploymentId String
    environmentId String
    Environment to deploy application to.
    forceStop Boolean
    start Boolean
    Start the application once deployed.
    timeouts DeploymentTimeouts
    applicationId string
    Application to deploy.
    applicationVersion number
    Version to application to deploy
    deploymentId string
    environmentId string
    Environment to deploy application to.
    forceStop boolean
    start boolean
    Start the application once deployed.
    timeouts DeploymentTimeouts
    application_id str
    Application to deploy.
    application_version int
    Version to application to deploy
    deployment_id str
    environment_id str
    Environment to deploy application to.
    force_stop bool
    start bool
    Start the application once deployed.
    timeouts DeploymentTimeoutsArgs
    applicationId String
    Application to deploy.
    applicationVersion Number
    Version to application to deploy
    deploymentId String
    environmentId String
    Environment to deploy application to.
    forceStop Boolean
    start Boolean
    Start the application once deployed.
    timeouts Property Map

    Supporting Types

    DeploymentTimeouts, DeploymentTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Import

    Using pulumi import, import Mainframe Modernization Deployment using the APPLICATION-ID,DEPLOYMENT-ID. For example:

    $ pulumi import aws:m2/deployment:Deployment example APPLICATION-ID,DEPLOYMENT-ID
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi