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
Definition of AWS::WellArchitected::Lens Resource Type
Create Lens Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Lens(name: string, args?: LensArgs, opts?: CustomResourceOptions);@overload
def Lens(resource_name: str,
args: Optional[LensArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Lens(resource_name: str,
opts: Optional[ResourceOptions] = None,
json_string: Optional[str] = None,
lens_version: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewLens(ctx *Context, name string, args *LensArgs, opts ...ResourceOption) (*Lens, error)public Lens(string name, LensArgs? args = null, CustomResourceOptions? opts = null)type: aws-native:wellarchitected:Lens
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_wellarchitected_lens" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args LensArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LensArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LensArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LensArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LensArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Lens Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Lens resource accepts the following input properties:
- Json
String string - The JSON representation of a lens.
- Lens
Version string - The version of the lens.
-
List<Pulumi.
Aws Native. Inputs. Tag> - The tags assigned to the lens.
- Json
String string - The JSON representation of a lens.
- Lens
Version string - The version of the lens.
-
Tag
Args - The tags assigned to the lens.
- json_
string string - The JSON representation of a lens.
- lens_
version string - The version of the lens.
- list(object)
- The tags assigned to the lens.
- json
String String - The JSON representation of a lens.
- lens
Version String - The version of the lens.
- List<Tag>
- The tags assigned to the lens.
- json
String string - The JSON representation of a lens.
- lens
Version string - The version of the lens.
- Tag[]
- The tags assigned to the lens.
- json_
string str - The JSON representation of a lens.
- lens_
version str - The version of the lens.
-
Sequence[Tag
Args] - The tags assigned to the lens.
- json
String String - The JSON representation of a lens.
- lens
Version String - The version of the lens.
- List<Property Map>
- The tags assigned to the lens.
Outputs
All input properties are implicitly available as output properties. Additionally, the Lens resource produces the following output properties:
Look up Existing Lens Resource
Get an existing Lens resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): Lens@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> Lensfunc GetLens(ctx *Context, name string, id IDInput, state *LensState, opts ...ResourceOption) (*Lens, error)public static Lens Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static Lens get(String name, Output<String> id, CustomResourceOptions options)resources: existingLens: type: aws-native:wellarchitected:Lens get: id: ${id}import {
to = aws-native_wellarchitected_lens.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state LensState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
Tag, TagArgs
A set of tags to apply to the resource.
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