com.pulumi.aws.m2.kotlin.ApplicationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.m2.kotlin
import com.pulumi.aws.m2.ApplicationArgs.builder
import com.pulumi.aws.m2.kotlin.inputs.ApplicationDefinitionArgs
import com.pulumi.aws.m2.kotlin.inputs.ApplicationDefinitionArgsBuilder
import com.pulumi.aws.m2.kotlin.inputs.ApplicationTimeoutsArgs
import com.pulumi.aws.m2.kotlin.inputs.ApplicationTimeoutsArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Resource for managing an [AWS Mainframe Modernization Application](https://docs.aws.amazon.com/m2/latest/userguide/applications-m2.html).
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.m2.Application("example", {
* name: "Example",
* engineType: "bluage",
* definition: {
* content: `{
* "definition": {
* "listeners": [
* {
* "port": 8196,
* "type": "http"
* }
* ],
* "ba-application": {
* "app-location": "${s3_source}/PlanetsDemo-v1.zip"
* }
* },
* "source-locations": [
* {
* "source-id": "s3-source",
* "source-type": "s3",
* "properties": {
* "s3-bucket": "example-bucket",
* "s3-key-prefix": "v1"
* }
* }
* ],
* "template-version": "2.0"
* }
* `,
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.m2.Application("example",
* name="Example",
* engine_type="bluage",
* definition={
* "content": f"""{{
* "definition": {{
* "listeners": [
* {{
* "port": 8196,
* "type": "http"
* }}
* ],
* "ba-application": {{
* "app-location": "{s3_source}/PlanetsDemo-v1.zip"
* }}
* }},
* "source-locations": [
* {{
* "source-id": "s3-source",
* "source-type": "s3",
* "properties": {{
* "s3-bucket": "example-bucket",
* "s3-key-prefix": "v1"
* }}
* }}
* ],
* "template-version": "2.0"
* }}
* """,
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.M2.Application("example", new()
* {
* Name = "Example",
* EngineType = "bluage",
* Definition = new Aws.M2.Inputs.ApplicationDefinitionArgs
* {
* Content = @$"{{
* ""definition"": {{
* ""listeners"": [
* {{
* ""port"": 8196,
* ""type"": ""http""
* }}
* ],
* ""ba-application"": {{
* ""app-location"": ""{s3_source}/PlanetsDemo-v1.zip""
* }}
* }},
* ""source-locations"": [
* {{
* ""source-id"": ""s3-source"",
* ""source-type"": ""s3"",
* ""properties"": {{
* ""s3-bucket"": ""example-bucket"",
* ""s3-key-prefix"": ""v1""
* }}
* }}
* ],
* ""template-version"": ""2.0""
* }}
* ",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "fmt"
* "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.NewApplication(ctx, "example", &m2.ApplicationArgs{
* Name: pulumi.String("Example"),
* EngineType: pulumi.String("bluage"),
* Definition: &m2.ApplicationDefinitionArgs{
* Content: pulumi.Sprintf(`{
* "definition": {
* "listeners": [
* {
* "port": 8196,
* "type": "http"
* }
* ],
* "ba-application": {
* "app-location": "%v/PlanetsDemo-v1.zip"
* }
* },
* "source-locations": [
* {
* "source-id": "s3-source",
* "source-type": "s3",
* "properties": {
* "s3-bucket": "example-bucket",
* "s3-key-prefix": "v1"
* }
* }
* ],
* "template-version": "2.0"
* }
* `, s3_source),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.m2.Application;
* import com.pulumi.aws.m2.ApplicationArgs;
* import com.pulumi.aws.m2.inputs.ApplicationDefinitionArgs;
* 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 Application("example", ApplicationArgs.builder()
* .name("Example")
* .engineType("bluage")
* .definition(ApplicationDefinitionArgs.builder()
* .content("""
* {
* "definition": {
* "listeners": [
* {
* "port": 8196,
* "type": "http"
* }
* ],
* "ba-application": {
* "app-location": "%s/PlanetsDemo-v1.zip"
* }
* },
* "source-locations": [
* {
* "source-id": "s3-source",
* "source-type": "s3",
* "properties": {
* "s3-bucket": "example-bucket",
* "s3-key-prefix": "v1"
* }
* }
* ],
* "template-version": "2.0"
* }
* ", s3_source))
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:m2:Application
* properties:
* name: Example
* engineType: bluage
* definition:
* content: |+
* {
* "definition": {
* "listeners": [
* {
* "port": 8196,
* "type": "http"
* }
* ],
* "ba-application": {
* "app-location": "${["s3-source"]}/PlanetsDemo-v1.zip"
* }
* },
* "source-locations": [
* {
* "source-id": "s3-source",
* "source-type": "s3",
* "properties": {
* "s3-bucket": "example-bucket",
* "s3-key-prefix": "v1"
* }
* }
* ],
* "template-version": "2.0"
* }
* ```
*
* ## Import
* Using `pulumi import`, import Mainframe Modernization Application using the `01234567890abcdef012345678`. For example:
* ```sh
* $ pulumi import aws:m2/application:Application example 01234567890abcdef012345678
* ```
* @property definition The application definition for this application. You can specify either inline JSON or an S3 bucket location.
* @property description Description of the application.
* @property engineType Engine type must be `microfocus | bluage`.
* @property kmsKeyId KMS Key to use for the Application.
* @property name Unique identifier of the application.
* The following arguments are optional:
* @property roleArn ARN of role for application to use to access AWS resources.
* @property tags Map of tags assigned to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
* @property timeouts
*/
public data class ApplicationArgs(
public val definition: Output? = null,
public val description: Output? = null,
public val engineType: Output? = null,
public val kmsKeyId: Output? = null,
public val name: Output? = null,
public val roleArn: Output? = null,
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy