DeploymentType class

Provides an AppConfig Deployment resource for an aws.appconfig.Application resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.appconfig.Deployment("example", {
    applicationId: exampleAwsAppconfigApplication.id,
    configurationProfileId: exampleAwsAppconfigConfigurationProfile.configurationProfileId,
    configurationVersion: exampleAwsAppconfigHostedConfigurationVersion.versionNumber,
    deploymentStrategyId: exampleAwsAppconfigDeploymentStrategy.id,
    description: "My example deployment",
    environmentId: exampleAwsAppconfigEnvironment.environmentId,
    kmsKeyIdentifier: exampleAwsKmsKey.arn,
    tags: {
        Type: "AppConfig Deployment",
    },
});
import pulumi
import pulumi_aws as aws

example = aws.appconfig.Deployment("example",
    application_id=example_aws_appconfig_application["id"],
    configuration_profile_id=example_aws_appconfig_configuration_profile["configurationProfileId"],
    configuration_version=example_aws_appconfig_hosted_configuration_version["versionNumber"],
    deployment_strategy_id=example_aws_appconfig_deployment_strategy["id"],
    description="My example deployment",
    environment_id=example_aws_appconfig_environment["environmentId"],
    kms_key_identifier=example_aws_kms_key["arn"],
    tags={
        "Type": "AppConfig Deployment",
    })
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() =>
{
    var example = new Aws.AppConfig.Deployment("example", new()
    {
        ApplicationId = exampleAwsAppconfigApplication.Id,
        ConfigurationProfileId = exampleAwsAppconfigConfigurationProfile.ConfigurationProfileId,
        ConfigurationVersion = exampleAwsAppconfigHostedConfigurationVersion.VersionNumber,
        DeploymentStrategyId = exampleAwsAppconfigDeploymentStrategy.Id,
        Description = "My example deployment",
        EnvironmentId = exampleAwsAppconfigEnvironment.EnvironmentId,
        KmsKeyIdentifier = exampleAwsKmsKey.Arn,
        Tags =
        {
            { "Type", "AppConfig Deployment" },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/appconfig"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := appconfig.NewDeployment(ctx, "example", &appconfig.DeploymentArgs{
			ApplicationId:          pulumi.Any(exampleAwsAppconfigApplication.Id),
			ConfigurationProfileId: pulumi.Any(exampleAwsAppconfigConfigurationProfile.ConfigurationProfileId),
			ConfigurationVersion:   pulumi.Any(exampleAwsAppconfigHostedConfigurationVersion.VersionNumber),
			DeploymentStrategyId:   pulumi.Any(exampleAwsAppconfigDeploymentStrategy.Id),
			Description:            pulumi.String("My example deployment"),
			EnvironmentId:          pulumi.Any(exampleAwsAppconfigEnvironment.EnvironmentId),
			KmsKeyIdentifier:       pulumi.Any(exampleAwsKmsKey.Arn),
			Tags: pulumi.StringMap{
				"Type": pulumi.String("AppConfig Deployment"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

resource "aws_appconfig_deployment" "example" {
  application_id           = exampleAwsAppconfigApplication.id
  configuration_profile_id = exampleAwsAppconfigConfigurationProfile.configurationProfileId
  configuration_version    = exampleAwsAppconfigHostedConfigurationVersion.versionNumber
  deployment_strategy_id   = exampleAwsAppconfigDeploymentStrategy.id
  description              = "My example deployment"
  environment_id           = exampleAwsAppconfigEnvironment.environmentId
  kms_key_identifier       = exampleAwsKmsKey.arn
  tags = {
    "Type" = "AppConfig Deployment"
  }
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appconfig.Deployment;
import com.pulumi.aws.appconfig.DeploymentArgs;
import java.util.ArrayList;
import java.util.Arrays;
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()
            .applicationId(exampleAwsAppconfigApplication.id())
            .configurationProfileId(exampleAwsAppconfigConfigurationProfile.configurationProfileId())
            .configurationVersion(exampleAwsAppconfigHostedConfigurationVersion.versionNumber())
            .deploymentStrategyId(exampleAwsAppconfigDeploymentStrategy.id())
            .description("My example deployment")
            .environmentId(exampleAwsAppconfigEnvironment.environmentId())
            .kmsKeyIdentifier(exampleAwsKmsKey.arn())
            .tags(Map.of("Type", "AppConfig Deployment"))
            .build());

    }
}
resources:
  example:
    type: aws:appconfig:Deployment
    properties:
      applicationId: ${exampleAwsAppconfigApplication.id}
      configurationProfileId: ${exampleAwsAppconfigConfigurationProfile.configurationProfileId}
      configurationVersion: ${exampleAwsAppconfigHostedConfigurationVersion.versionNumber}
      deploymentStrategyId: ${exampleAwsAppconfigDeploymentStrategy.id}
      description: My example deployment
      environmentId: ${exampleAwsAppconfigEnvironment.environmentId}
      kmsKeyIdentifier: ${exampleAwsKmsKey.arn}
      tags:
        Type: AppConfig Deployment

Import

Using pulumi import, import AppConfig Deployments using the application ID, environment ID, and deployment number separated by a slash (/). For example:

$ pulumi import aws:appconfig/deployment:Deployment example 71abcde/11xxxxx/1

Constructors

DeploymentType(String name, {DeploymentArgs? args, CustomResourceOptions? options})
Creates a new DeploymentType. name The Pulumi resource name. args Arguments used to configure this DeploymentType. The set of arguments for Deployment. options Resource options controlling this resource's behavior.
DeploymentType.reference(String urn)
Creates a typed reference to an existing DeploymentType resource.

Properties

applicationId ↔ Output<String>
Application ID. Must be between 4 and 7 characters in length.
latefinal
arn ↔ Output<String>
ARN of the AppConfig Deployment.
latefinal
childResources → Set<Resource>
finalinherited
completionSources ↔ Map<String, IOutputCompletionSource>
latefinalinherited
configurationProfileId ↔ Output<String>
Configuration profile ID. Must be between 4 and 7 characters in length.
latefinal
configurationVersion ↔ Output<String>
Configuration version to deploy. Can be at most 1024 characters.
latefinal
deploymentNumber ↔ Output<int>
Deployment number.
latefinal
deploymentStrategyId ↔ Output<String>
Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.
latefinal
description ↔ Output<String?>
Description of the deployment. Can be at most 1024 characters.
latefinal
environmentId ↔ Output<String>
Environment ID. Must be between 4 and 7 characters in length.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
id ↔ Output<String>
getter/setter pairinherited
isCustom → bool
Returns whether this resource is provider-managed.
no setterinherited
isProtected → bool
Returns whether this resource is protected from deletion.
no setterinherited
isRemote → bool
Whether this resource is registered as remote.
no setterinherited
isResourceReference → bool
Whether this instance represents a resource value returned over RPC.
finalinherited
kmsKeyArn ↔ Output<String>
ARN of the KMS key used to encrypt configuration data.
latefinal
kmsKeyIdentifier ↔ Output<String?>
KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this to encrypt the configuration data using a customer managed key.
latefinal
region ↔ Output<String>
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
resourceTransforms → List<ResourceTransform>
Inherited/explicit async transforms.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state ↔ Output<String>
State of the deployment.
latefinal
tags ↔ Output<Map<String, String>?>
Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
latefinal
tagsAll ↔ Output<Map<String, String>>
Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
latefinal
transformations → List<ResourceTransformation>
Inherited/explicit legacy transformations.
no setterinherited
urn ↔ Output<String>
latefinalinherited

Methods

failId(Object error) → void
Completes this resource ID with an error when registration fails.
inherited
failOutputs(Object error) → void
Completes all output properties with error.
inherited
failUrn(Object error) → void
Completes this resource URN with an error when registration fails.
inherited
getProvider(String moduleMember) → ProviderResource?
Returns provider for moduleMember's package, if configured.
inherited
getResourceName() → String
Returns this resource's logical name.
inherited
getResourceType() → String
Returns this resource's Pulumi type token.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerOutput<T>(String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output<T>
Registers a dynamic output property for this resource.
inherited
resolveId(String? value, {required bool isKnown}) → void
Resolves the provider-assigned ID for this resource.
inherited
resolveOutputs(Struct outputs) → void
Resolves all output properties from a monitor response payload.
inherited
resolveUrn(String value) → void
Resolves this resource's URN once assigned by the engine.
inherited
serializeProperties(Map<String, dynamic> properties) → Future<Struct>
Serializes resource properties for RPC transmission.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

get(String name, Input<String> id, {DeploymentState? state, CustomResourceOptions? options}) → DeploymentType
Gets an existing DeploymentType resource's state with the given name and id.