github.com/crossplane/upjet@v1.3.0/pkg/registry/testdata/aws/pm.yaml (about)

     1  # SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
     2  #
     3  # SPDX-License-Identifier: Apache-2.0
     4  
     5  name: test-provider
     6  resources:
     7    aws_accessanalyzer_analyzer:
     8      subCategory: IAM Access Analyzer
     9      description: Manages an Access Analyzer Analyzer
    10      name: aws_accessanalyzer_analyzer
    11      title: aws_accessanalyzer_analyzer
    12      examples:
    13        - name: example
    14          manifest: |-
    15            {
    16              "analyzer_name": "example"
    17            }
    18        - name: example
    19          manifest: |-
    20            {
    21              "analyzer_name": "example",
    22              "depends_on": [
    23                "${aws_organizations_organization.example}"
    24              ],
    25              "type": "ORGANIZATION"
    26            }
    27          dependencies:
    28            aws_organizations_organization.example: |-
    29              {
    30                "aws_service_access_principals": [
    31                  "access-analyzer.amazonaws.com"
    32                ]
    33              }
    34      argumentDocs:
    35        analyzer_name: "- (Required) Name of the Analyzer."
    36        arn: "- The Amazon Resource Name (ARN) of the Analyzer."
    37        id: "- Analyzer name."
    38        tags: "- (Optional) Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level."
    39        tags_all: "- A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block."
    40        type: "- (Optional) Type of Analyzer. Valid values are ACCOUNT or ORGANIZATION. Defaults to ACCOUNT."
    41      importStatements: []
    42    aws_ebs_volume:
    43      subCategory: EBS (EC2)
    44      description: Provides an elastic block storage resource.
    45      name: aws_ebs_volume
    46      title: aws_ebs_volume
    47      examples:
    48        - name: example
    49          manifest: |-
    50            {
    51              "availability_zone": "us-west-2a",
    52              "size": 40,
    53              "tags": {
    54                "Name": "HelloWorld"
    55              }
    56            }
    57      argumentDocs:
    58        arn: "- The volume ARN (e.g., arn:aws:ec2:us-east-1:0123456789012:volume/vol-59fcb34e)."
    59        availability_zone: "- (Required) The AZ where the EBS volume will exist."
    60        create: "- (Default 5 minutes) Used for creating volumes. This includes the time required for the volume to become available"
    61        delete: "- (Default 5 minutes) Used for destroying volumes"
    62        encrypted: "- (Optional) If true, the disk will be encrypted."
    63        id: "- The volume ID (e.g., vol-59fcb34e)."
    64        iops: "- (Optional) The amount of IOPS to provision for the disk. Only valid for type of io1, io2 or gp3."
    65        kms_key_id: "- (Optional) The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true. Note: Terraform must be running with credentials which have the GenerateDataKeyWithoutPlaintext permission on the specified KMS key as required by the EBS KMS CMK volume provisioning process to prevent a volume from being created and almost immediately deleted."
    66        multi_attach_enabled: "- (Optional) Specifies whether to enable Amazon EBS Multi-Attach. Multi-Attach is supported on io1 and io2 volumes."
    67        outpost_arn: "- (Optional) The Amazon Resource Name (ARN) of the Outpost."
    68        size: "- (Optional) The size of the drive in GiBs."
    69        snapshot_id: (Optional) A snapshot to base the EBS volume off of.
    70        tags: "- (Optional) A map of tags to assign 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."
    71        tags_all: "- A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block."
    72        throughput: "- (Optional) The throughput that the volume supports, in MiB/s. Only valid for type of gp3."
    73        type: "- (Optional) The type of EBS volume. Can be standard, gp2, gp3, io1, io2, sc1 or st1 (Default: gp2)."
    74        update: "- (Default 5 minutes) Used for size, type, or iops volume changes"
    75      importStatements: []
    76    aws_s3_bucket_acl:
    77      subCategory: S3 (Simple Storage)
    78      description: Provides an S3 bucket ACL resource.
    79      name: aws_s3_bucket_acl
    80      title: aws_s3_bucket_acl
    81      examples:
    82        - name: example_bucket_acl
    83          manifest: |-
    84            {
    85              "acl": "private",
    86              "bucket": "${aws_s3_bucket.example.id}"
    87            }
    88          references:
    89            bucket: aws_s3_bucket.example.id
    90          dependencies:
    91            aws_s3_bucket.example: |-
    92              {
    93                "bucket": "my-tf-example-bucket"
    94              }
    95        - name: example
    96          manifest: |-
    97            {
    98              "access_control_policy": [
    99                {
   100                  "grant": [
   101                    {
   102                      "grantee": [
   103                        {
   104                          "id": "${data.aws_canonical_user_id.current.id}",
   105                          "type": "CanonicalUser"
   106                        }
   107                      ],
   108                      "permission": "READ"
   109                    },
   110                    {
   111                      "grantee": [
   112                        {
   113                          "type": "Group",
   114                          "uri": "http://acs.amazonaws.com/groups/s3/LogDelivery"
   115                        }
   116                      ],
   117                      "permission": "READ_ACP"
   118                    }
   119                  ],
   120                  "owner": [
   121                    {
   122                      "id": "${data.aws_canonical_user_id.current.id}"
   123                    }
   124                  ]
   125                }
   126              ],
   127              "bucket": "${aws_s3_bucket.example.id}"
   128            }
   129          references:
   130            access_control_policy.grant.grantee.id: data.aws_canonical_user_id.current.id
   131            access_control_policy.owner.id: data.aws_canonical_user_id.current.id
   132            bucket: aws_s3_bucket.example.id
   133          dependencies:
   134            aws_s3_bucket.example: |-
   135              {
   136                "bucket": "my-tf-example-bucket"
   137              }
   138      argumentDocs:
   139        access_control_policy: "- (Optional, Conflicts with acl) A configuration block that sets the ACL permissions for an object per grantee documented below."
   140        access_control_policy.grant: "- (Required) Set of grant configuration blocks documented below."
   141        access_control_policy.grant.grantee: "- (Required) Configuration block for the person being granted permissions documented below."
   142        access_control_policy.grant.permission: "- (Required) Logging permissions assigned to the grantee for the bucket."
   143        access_control_policy.owner: "- (Required) Configuration block of the bucket owner's display name and ID documented below."
   144        acl: "- (Optional, Conflicts with access_control_policy) The canned ACL to apply to the bucket."
   145        bucket: "- (Required, Forces new resource) The name of the bucket."
   146        expected_bucket_owner: "- (Optional, Forces new resource) The account ID of the expected bucket owner."
   147        grantee.email_address: "- (Optional) Email address of the grantee. See Regions and Endpoints for supported AWS regions where this argument can be specified."
   148        grantee.id: "- (Optional) The canonical user ID of the grantee."
   149        grantee.type: "- (Required) Type of grantee. Valid values: CanonicalUser, AmazonCustomerByEmail, Group."
   150        grantee.uri: "- (Optional) URI of the grantee group."
   151        id: "- The bucket, expected_bucket_owner (if configured), and acl (if configured) separated by commas (,)."
   152        owner.display_name: "- (Optional) The display name of the owner."
   153        owner.id: "- (Required) The ID of the owner."
   154      importStatements: []