github.com/crossplane/upjet@v1.3.0/pkg/registry/testdata/aws/r/accessanalyzer_analyzer.html.markdown (about) 1 <!-- 2 SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io> 3 4 SPDX-License-Identifier: Apache-2.0 5 --> 6 7 --- 8 9 subcategory: "IAM Access Analyzer" 10 layout: "aws" 11 page_title: "AWS: aws_accessanalyzer_analyzer" 12 description: |- 13 Manages an Access Analyzer Analyzer 14 --- 15 16 # Resource: aws_accessanalyzer_analyzer 17 18 Manages an Access Analyzer Analyzer. More information can be found in the [Access Analyzer User Guide](https://docs.aws.amazon.com/IAM/latest/UserGuide/what-is-access-analyzer.html). 19 20 ## Example Usage 21 22 ### Account Analyzer 23 24 ```terraform 25 resource "aws_accessanalyzer_analyzer" "example" { 26 analyzer_name = "example" 27 } 28 ``` 29 30 ### Organization Analyzer 31 32 ```terraform 33 resource "aws_organizations_organization" "example" { 34 aws_service_access_principals = ["access-analyzer.amazonaws.com"] 35 } 36 37 resource "aws_accessanalyzer_analyzer" "example" { 38 depends_on = [aws_organizations_organization.example] 39 40 analyzer_name = "example" 41 type = "ORGANIZATION" 42 } 43 ``` 44 45 ## Argument Reference 46 47 The following arguments are required: 48 49 * `analyzer_name` - (Required) Name of the Analyzer. 50 51 The following arguments are optional: 52 53 * `tags` - (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configuration block](/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level. 54 * `type` - (Optional) Type of Analyzer. Valid values are `ACCOUNT` or `ORGANIZATION`. Defaults to `ACCOUNT`. 55 56 ## Attributes Reference 57 58 In addition to all arguments above, the following attributes are exported: 59 60 * `arn` - The Amazon Resource Name (ARN) of the Analyzer. 61 * `id` - Analyzer name. 62 * `tags_all` - A map of tags assigned to the resource, including those inherited from the provider [`default_tags` configuration block](/docs/providers/aws/index.html#default_tags-configuration-block). 63 64 ## Import 65 66 Access Analyzer Analyzers can be imported using the `analyzer_name`, e.g., 67 68 ``` 69 terraform import aws_accessanalyzer_analyzer.example example 70 ```