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

aws.apprunner.Deployment

Explore with Pulumi AI

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

    Manages an App Runner Deployment Operation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.apprunner.Deployment("example", {serviceArn: exampleAwsApprunnerService.arn});
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.apprunner.Deployment("example", service_arn=example_aws_apprunner_service["arn"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/apprunner"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := apprunner.NewDeployment(ctx, "example", &apprunner.DeploymentArgs{
    			ServiceArn: pulumi.Any(exampleAwsApprunnerService.Arn),
    		})
    		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 example = new Aws.AppRunner.Deployment("example", new()
        {
            ServiceArn = exampleAwsApprunnerService.Arn,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.apprunner.Deployment;
    import com.pulumi.aws.apprunner.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 example = new Deployment("example", DeploymentArgs.builder()
                .serviceArn(exampleAwsApprunnerService.arn())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:apprunner:Deployment
        properties:
          serviceArn: ${exampleAwsApprunnerService.arn}
    

    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,
                   service_arn: Optional[str] = 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:apprunner: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 exampledeploymentResourceResourceFromApprunnerdeployment = new Aws.AppRunner.Deployment("exampledeploymentResourceResourceFromApprunnerdeployment", new()
    {
        ServiceArn = "string",
        Timeouts = new Aws.AppRunner.Inputs.DeploymentTimeoutsArgs
        {
            Create = "string",
        },
    });
    
    example, err := apprunner.NewDeployment(ctx, "exampledeploymentResourceResourceFromApprunnerdeployment", &apprunner.DeploymentArgs{
    	ServiceArn: pulumi.String("string"),
    	Timeouts: &apprunner.DeploymentTimeoutsArgs{
    		Create: pulumi.String("string"),
    	},
    })
    
    var exampledeploymentResourceResourceFromApprunnerdeployment = new Deployment("exampledeploymentResourceResourceFromApprunnerdeployment", DeploymentArgs.builder()
        .serviceArn("string")
        .timeouts(DeploymentTimeoutsArgs.builder()
            .create("string")
            .build())
        .build());
    
    exampledeployment_resource_resource_from_apprunnerdeployment = aws.apprunner.Deployment("exampledeploymentResourceResourceFromApprunnerdeployment",
        service_arn="string",
        timeouts={
            "create": "string",
        })
    
    const exampledeploymentResourceResourceFromApprunnerdeployment = new aws.apprunner.Deployment("exampledeploymentResourceResourceFromApprunnerdeployment", {
        serviceArn: "string",
        timeouts: {
            create: "string",
        },
    });
    
    type: aws:apprunner:Deployment
    properties:
        serviceArn: string
        timeouts:
            create: 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:

    ServiceArn string
    The Amazon Resource Name (ARN) of the App Runner service to start the deployment for.
    Timeouts DeploymentTimeouts
    ServiceArn string
    The Amazon Resource Name (ARN) of the App Runner service to start the deployment for.
    Timeouts DeploymentTimeoutsArgs
    serviceArn String
    The Amazon Resource Name (ARN) of the App Runner service to start the deployment for.
    timeouts DeploymentTimeouts
    serviceArn string
    The Amazon Resource Name (ARN) of the App Runner service to start the deployment for.
    timeouts DeploymentTimeouts
    service_arn str
    The Amazon Resource Name (ARN) of the App Runner service to start the deployment for.
    timeouts DeploymentTimeoutsArgs
    serviceArn String
    The Amazon Resource Name (ARN) of the App Runner service to start the deployment for.
    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    OperationId string
    The unique ID of the operation associated with deployment.
    Status string
    The current status of the App Runner service deployment.
    Id string
    The provider-assigned unique ID for this managed resource.
    OperationId string
    The unique ID of the operation associated with deployment.
    Status string
    The current status of the App Runner service deployment.
    id String
    The provider-assigned unique ID for this managed resource.
    operationId String
    The unique ID of the operation associated with deployment.
    status String
    The current status of the App Runner service deployment.
    id string
    The provider-assigned unique ID for this managed resource.
    operationId string
    The unique ID of the operation associated with deployment.
    status string
    The current status of the App Runner service deployment.
    id str
    The provider-assigned unique ID for this managed resource.
    operation_id str
    The unique ID of the operation associated with deployment.
    status str
    The current status of the App Runner service deployment.
    id String
    The provider-assigned unique ID for this managed resource.
    operationId String
    The unique ID of the operation associated with deployment.
    status String
    The current status of the App Runner service deployment.

    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,
            operation_id: Optional[str] = None,
            service_arn: Optional[str] = None,
            status: Optional[str] = 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:
    OperationId string
    The unique ID of the operation associated with deployment.
    ServiceArn string
    The Amazon Resource Name (ARN) of the App Runner service to start the deployment for.
    Status string
    The current status of the App Runner service deployment.
    Timeouts DeploymentTimeouts
    OperationId string
    The unique ID of the operation associated with deployment.
    ServiceArn string
    The Amazon Resource Name (ARN) of the App Runner service to start the deployment for.
    Status string
    The current status of the App Runner service deployment.
    Timeouts DeploymentTimeoutsArgs
    operationId String
    The unique ID of the operation associated with deployment.
    serviceArn String
    The Amazon Resource Name (ARN) of the App Runner service to start the deployment for.
    status String
    The current status of the App Runner service deployment.
    timeouts DeploymentTimeouts
    operationId string
    The unique ID of the operation associated with deployment.
    serviceArn string
    The Amazon Resource Name (ARN) of the App Runner service to start the deployment for.
    status string
    The current status of the App Runner service deployment.
    timeouts DeploymentTimeouts
    operation_id str
    The unique ID of the operation associated with deployment.
    service_arn str
    The Amazon Resource Name (ARN) of the App Runner service to start the deployment for.
    status str
    The current status of the App Runner service deployment.
    timeouts DeploymentTimeoutsArgs
    operationId String
    The unique ID of the operation associated with deployment.
    serviceArn String
    The Amazon Resource Name (ARN) of the App Runner service to start the deployment for.
    status String
    The current status of the App Runner service deployment.
    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).
    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).
    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).
    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).
    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).
    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).

    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