Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws.appconfig.getEnvironment
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
Provides access to an AppConfig Environment.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.appconfig.getEnvironment({
applicationId: "b5d5gpj",
environmentId: "qrbb1c1",
});
import pulumi
import pulumi_aws as aws
example = aws.appconfig.get_environment(application_id="b5d5gpj",
environment_id="qrbb1c1")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appconfig"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appconfig.LookupEnvironment(ctx, &appconfig.LookupEnvironmentArgs{
ApplicationId: "b5d5gpj",
EnvironmentId: "qrbb1c1",
}, nil)
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 = Aws.AppConfig.GetEnvironment.Invoke(new()
{
ApplicationId = "b5d5gpj",
EnvironmentId = "qrbb1c1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appconfig.AppconfigFunctions;
import com.pulumi.aws.appconfig.inputs.GetEnvironmentArgs;
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) {
final var example = AppconfigFunctions.getEnvironment(GetEnvironmentArgs.builder()
.applicationId("b5d5gpj")
.environmentId("qrbb1c1")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:appconfig:getEnvironment
Arguments:
applicationId: b5d5gpj
environmentId: qrbb1c1
Using getEnvironment
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getEnvironment(args: GetEnvironmentArgs, opts?: InvokeOptions): Promise<GetEnvironmentResult>
function getEnvironmentOutput(args: GetEnvironmentOutputArgs, opts?: InvokeOptions): Output<GetEnvironmentResult>
def get_environment(application_id: Optional[str] = None,
environment_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetEnvironmentResult
def get_environment_output(application_id: Optional[pulumi.Input[str]] = None,
environment_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEnvironmentResult]
func LookupEnvironment(ctx *Context, args *LookupEnvironmentArgs, opts ...InvokeOption) (*LookupEnvironmentResult, error)
func LookupEnvironmentOutput(ctx *Context, args *LookupEnvironmentOutputArgs, opts ...InvokeOption) LookupEnvironmentResultOutput
> Note: This function is named LookupEnvironment
in the Go SDK.
public static class GetEnvironment
{
public static Task<GetEnvironmentResult> InvokeAsync(GetEnvironmentArgs args, InvokeOptions? opts = null)
public static Output<GetEnvironmentResult> Invoke(GetEnvironmentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEnvironmentResult> getEnvironment(GetEnvironmentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:appconfig/getEnvironment:getEnvironment
arguments:
# arguments dictionary
The following arguments are supported:
- Application
Id string - ID of the AppConfig Application to which this Environment belongs.
- Environment
Id string - ID of the AppConfig Environment.
- Dictionary<string, string>
- Map of tags for the resource.
- Application
Id string - ID of the AppConfig Application to which this Environment belongs.
- Environment
Id string - ID of the AppConfig Environment.
- map[string]string
- Map of tags for the resource.
- application
Id String - ID of the AppConfig Application to which this Environment belongs.
- environment
Id String - ID of the AppConfig Environment.
- Map<String,String>
- Map of tags for the resource.
- application
Id string - ID of the AppConfig Application to which this Environment belongs.
- environment
Id string - ID of the AppConfig Environment.
- {[key: string]: string}
- Map of tags for the resource.
- application_
id str - ID of the AppConfig Application to which this Environment belongs.
- environment_
id str - ID of the AppConfig Environment.
- Mapping[str, str]
- Map of tags for the resource.
- application
Id String - ID of the AppConfig Application to which this Environment belongs.
- environment
Id String - ID of the AppConfig Environment.
- Map<String>
- Map of tags for the resource.
getEnvironment Result
The following output properties are available:
- Application
Id string - Arn string
- ARN of the environment.
- Description string
- Name of the environment.
- Environment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Monitors
List<Get
Environment Monitor> - Set of Amazon CloudWatch alarms to monitor during the deployment process.
- Name string
- Name of the environment.
- State string
- State of the environment. Possible values are
READY_FOR_DEPLOYMENT
,DEPLOYING
,ROLLING_BACK
orROLLED_BACK
. - Dictionary<string, string>
- Map of tags for the resource.
- Application
Id string - Arn string
- ARN of the environment.
- Description string
- Name of the environment.
- Environment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Monitors
[]Get
Environment Monitor - Set of Amazon CloudWatch alarms to monitor during the deployment process.
- Name string
- Name of the environment.
- State string
- State of the environment. Possible values are
READY_FOR_DEPLOYMENT
,DEPLOYING
,ROLLING_BACK
orROLLED_BACK
. - map[string]string
- Map of tags for the resource.
- application
Id String - arn String
- ARN of the environment.
- description String
- Name of the environment.
- environment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- monitors
List<Get
Environment Monitor> - Set of Amazon CloudWatch alarms to monitor during the deployment process.
- name String
- Name of the environment.
- state String
- State of the environment. Possible values are
READY_FOR_DEPLOYMENT
,DEPLOYING
,ROLLING_BACK
orROLLED_BACK
. - Map<String,String>
- Map of tags for the resource.
- application
Id string - arn string
- ARN of the environment.
- description string
- Name of the environment.
- environment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- monitors
Get
Environment Monitor[] - Set of Amazon CloudWatch alarms to monitor during the deployment process.
- name string
- Name of the environment.
- state string
- State of the environment. Possible values are
READY_FOR_DEPLOYMENT
,DEPLOYING
,ROLLING_BACK
orROLLED_BACK
. - {[key: string]: string}
- Map of tags for the resource.
- application_
id str - arn str
- ARN of the environment.
- description str
- Name of the environment.
- environment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- monitors
Sequence[Get
Environment Monitor] - Set of Amazon CloudWatch alarms to monitor during the deployment process.
- name str
- Name of the environment.
- state str
- State of the environment. Possible values are
READY_FOR_DEPLOYMENT
,DEPLOYING
,ROLLING_BACK
orROLLED_BACK
. - Mapping[str, str]
- Map of tags for the resource.
- application
Id String - arn String
- ARN of the environment.
- description String
- Name of the environment.
- environment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- monitors List<Property Map>
- Set of Amazon CloudWatch alarms to monitor during the deployment process.
- name String
- Name of the environment.
- state String
- State of the environment. Possible values are
READY_FOR_DEPLOYMENT
,DEPLOYING
,ROLLING_BACK
orROLLED_BACK
. - Map<String>
- Map of tags for the resource.
Supporting Types
GetEnvironmentMonitor
- Alarm
Arn string - ARN of the Amazon CloudWatch alarm.
- Alarm
Role stringArn - ARN of an IAM role for AWS AppConfig to monitor.
- Alarm
Arn string - ARN of the Amazon CloudWatch alarm.
- Alarm
Role stringArn - ARN of an IAM role for AWS AppConfig to monitor.
- alarm
Arn String - ARN of the Amazon CloudWatch alarm.
- alarm
Role StringArn - ARN of an IAM role for AWS AppConfig to monitor.
- alarm
Arn string - ARN of the Amazon CloudWatch alarm.
- alarm
Role stringArn - ARN of an IAM role for AWS AppConfig to monitor.
- alarm_
arn str - ARN of the Amazon CloudWatch alarm.
- alarm_
role_ strarn - ARN of an IAM role for AWS AppConfig to monitor.
- alarm
Arn String - ARN of the Amazon CloudWatch alarm.
- alarm
Role StringArn - ARN of an IAM role for AWS AppConfig to monitor.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi