We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
Resource Type definition for AWS::CloudWatch::View. A view is a named, reusable SQL query that can be referenced from CloudWatch telemetry queries. View names must be unique within the account and region.
Using getView
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 getView(args: GetViewArgs, opts?: InvokeOptions): Promise<GetViewResult>
function getViewOutput(args: GetViewOutputArgs, opts?: InvokeOutputOptions): Output<GetViewResult>def get_view(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetViewResult
def get_view_output(name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetViewResult]func LookupView(ctx *Context, args *LookupViewArgs, opts ...InvokeOption) (*LookupViewResult, error)
func LookupViewOutput(ctx *Context, args *LookupViewOutputArgs, opts ...InvokeOption) LookupViewResultOutput> Note: This function is named LookupView in the Go SDK.
public static class GetView
{
public static Task<GetViewResult> InvokeAsync(GetViewArgs args, InvokeOptions? opts = null)
public static Output<GetViewResult> Invoke(GetViewInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetViewResult> Invoke(GetViewInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetViewResult> getView(GetViewArgs args, InvokeOptions options)
public static Output<GetViewResult> getView(GetViewArgs args, InvokeOptions options)
public static Output<GetViewResult> getView(GetViewArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws-native:cloudwatch:getView
arguments:
# arguments dictionarydata "aws-native_cloudwatch_get_view" "name" {
# arguments
}The following arguments are supported:
- Name string
- The name of the view. Must begin with the "view." prefix followed by lowercase alphanumeric characters, hyphens, and underscores. View names must be unique within the account and region. If not specified, a name is generated.
- Name string
- The name of the view. Must begin with the "view." prefix followed by lowercase alphanumeric characters, hyphens, and underscores. View names must be unique within the account and region. If not specified, a name is generated.
- name string
- The name of the view. Must begin with the "view." prefix followed by lowercase alphanumeric characters, hyphens, and underscores. View names must be unique within the account and region. If not specified, a name is generated.
- name String
- The name of the view. Must begin with the "view." prefix followed by lowercase alphanumeric characters, hyphens, and underscores. View names must be unique within the account and region. If not specified, a name is generated.
- name string
- The name of the view. Must begin with the "view." prefix followed by lowercase alphanumeric characters, hyphens, and underscores. View names must be unique within the account and region. If not specified, a name is generated.
- name str
- The name of the view. Must begin with the "view." prefix followed by lowercase alphanumeric characters, hyphens, and underscores. View names must be unique within the account and region. If not specified, a name is generated.
- name String
- The name of the view. Must begin with the "view." prefix followed by lowercase alphanumeric characters, hyphens, and underscores. View names must be unique within the account and region. If not specified, a name is generated.
getView Result
The following output properties are available:
- Arn string
- The Amazon Resource Name (ARN) of the view.
- Created
At string - The timestamp when the view was created.
- Definition string
- The SQL query that defines the view.
- Description string
- A description of the view.
-
List<Pulumi.
Aws Native. Outputs. Tag> - An array of key-value pairs to apply to the view.
- Type
Pulumi.
Aws Native. Cloud Watch. View Type - The ownership category of the view. Views created through CloudFormation are always USER views; MANAGED views are provisioned by AWS.
- Updated
At string - The timestamp when the view was last updated.
- Arn string
- The Amazon Resource Name (ARN) of the view.
- Created
At string - The timestamp when the view was created.
- Definition string
- The SQL query that defines the view.
- Description string
- A description of the view.
- Tag
- An array of key-value pairs to apply to the view.
- Type
View
Type - The ownership category of the view. Views created through CloudFormation are always USER views; MANAGED views are provisioned by AWS.
- Updated
At string - The timestamp when the view was last updated.
- arn string
- The Amazon Resource Name (ARN) of the view.
- created_
at string - The timestamp when the view was created.
- definition string
- The SQL query that defines the view.
- description string
- A description of the view.
- list(object)
- An array of key-value pairs to apply to the view.
- type "USER" | "MANAGED"
- The ownership category of the view. Views created through CloudFormation are always USER views; MANAGED views are provisioned by AWS.
- updated_
at string - The timestamp when the view was last updated.
- arn String
- The Amazon Resource Name (ARN) of the view.
- created
At String - The timestamp when the view was created.
- definition String
- The SQL query that defines the view.
- description String
- A description of the view.
- List<Tag>
- An array of key-value pairs to apply to the view.
- type
View
Type - The ownership category of the view. Views created through CloudFormation are always USER views; MANAGED views are provisioned by AWS.
- updated
At String - The timestamp when the view was last updated.
- arn string
- The Amazon Resource Name (ARN) of the view.
- created
At string - The timestamp when the view was created.
- definition string
- The SQL query that defines the view.
- description string
- A description of the view.
- Tag[]
- An array of key-value pairs to apply to the view.
- type
View
Type - The ownership category of the view. Views created through CloudFormation are always USER views; MANAGED views are provisioned by AWS.
- updated
At string - The timestamp when the view was last updated.
- arn str
- The Amazon Resource Name (ARN) of the view.
- created_
at str - The timestamp when the view was created.
- definition str
- The SQL query that defines the view.
- description str
- A description of the view.
- Sequence[root_Tag]
- An array of key-value pairs to apply to the view.
- type
View
Type - The ownership category of the view. Views created through CloudFormation are always USER views; MANAGED views are provisioned by AWS.
- updated_
at str - The timestamp when the view was last updated.
- arn String
- The Amazon Resource Name (ARN) of the view.
- created
At String - The timestamp when the view was created.
- definition String
- The SQL query that defines the view.
- description String
- A description of the view.
- List<Property Map>
- An array of key-value pairs to apply to the view.
- type "USER" | "MANAGED"
- The ownership category of the view. Views created through CloudFormation are always USER views; MANAGED views are provisioned by AWS.
- updated
At String - The timestamp when the view was last updated.
Supporting Types
Tag
ViewType
| Name | Value |
|---|---|
| User | USER |
| Managed | MANAGED |
| Name | Value |
|---|---|
| View | USER |
| View | MANAGED |
| Value |
|---|
USER |
MANAGED |
| Name | Value |
|---|---|
| User | USER |
| Managed | MANAGED |
| Name | Value |
|---|---|
| User | USER |
| Managed | MANAGED |
| Name | Value |
|---|---|
| USER | USER |
| MANAGED | MANAGED |
| Value |
|---|
USER |
MANAGED |
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi