Application

class Application : KotlinCustomResource

Resource for managing an AWS Mainframe Modernization Application.

Example Usage

Basic Usage

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"
}
`,
},
});
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"
}}
""",
})
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""
}}
",
},
});
});
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
})
}
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());
}
}
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:

$ pulumi import aws:m2/application:Application example 01234567890abcdef012345678

Properties

Link copied to clipboard
val applicationId: Output<String>

Id of the Application.

Link copied to clipboard
val arn: Output<String>

ARN of the Application.

Link copied to clipboard
val currentVersion: Output<Int>

Current version of the application deployed.

Link copied to clipboard

The application definition for this application. You can specify either inline JSON or an S3 bucket location.

Link copied to clipboard
val description: Output<String>?

Description of the application.

Link copied to clipboard
val engineType: Output<String>

Engine type must be microfocus | bluage.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kmsKeyId: Output<String>?

KMS Key to use for the Application.

Link copied to clipboard
val name: Output<String>

Unique identifier of the application. The following arguments are optional:

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val roleArn: Output<String>?

ARN of role for application to use to access AWS resources.

Link copied to clipboard
val tags: Output<Map<String, String>>?

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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
Link copied to clipboard
val urn: Output<String>